I cant able to get the IP of the machine

@Luca2

Welcome to the community

Please try this

ip = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList(0).ToString()

Cheers

Got the same error.
A month ago I did it the way it is in the photo and now it gives me an error

@Luca2

I just tried the same and i can see the ip… can you try creating a new process and check…

Cheers

I deleted the Dns variable and it worked, thanks for your attention

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.