Hi,
How do I display the computer's IP address automatically? I know I can get my IP address by going into a msdos prompt and typing IPCONFIG, but is there an easier way to get it so i can display it on my program?
Printable View
Hi,
How do I display the computer's IP address automatically? I know I can get my IP address by going into a msdos prompt and typing IPCONFIG, but is there an easier way to get it so i can display it on my program?
use the winsock control
winsock1.localip should be it.
Note: If you are in a network, it'll pass you the internel IP