Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP addresses in VB

Status
Not open for further replies.

benlinkknilneb

Programmer
Joined
May 16, 2002
Messages
590
Location
US
Hey, I'm writing a program that's using a WinSock... I want to automate it though, so the user doesn't have to enter a lot of "technical" stuff... is there an API call or something i can use to return My IP address?

Thanks in advance...
Ben
 
you mean to return other computers IP address??
if you want to return the local IP address, you can use LocalIP property of the Winsock control.
 
thanks alfred... i had always assumed that LocalIP property was programmer-defined, as in, i'd have to get the IP and put it there myself... thanks again!

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top