This is simple to you guys out there I'm sure...How do I gat the IP of my Local machine?
Printable View
This is simple to you guys out there I'm sure...How do I gat the IP of my Local machine?
In your form add a winsock control, a text box, and a command button. Put this code in your command button sub.
Text1.Text = Winsock1.LocalIP
This is dejavu. Someone else answered this question this week saying to add a winsock control and check the Local IP property. Another way is to use the "ipconfig" program from DOS shell or using the SHELL command.