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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with getting users IP

Status
Not open for further replies.

jonno946

Programmer
Jun 25, 2002
2
GB
I am making a file sharing application, using the winsock tool in VB6. I have tried a number of ways so far, including winsock1.LocalIP, but this returns the incorrect IP. I need the IP that is in WINIPCFG, and no other. Is there anyway i can extract the ip from the winipcfg file? I really need some assistance!!
 
Use the GetNetworkParams API. Go to for more info and an example.

Hope it helps, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Oops. That one is for Win98 or better.

Later, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Yah, The real problem is that the way we're running this it will give the local IP which could be a problem behind, say a router or a firewall ... ( BTW jonno is my partner on this project ) ... I have a router, and say my computers IP is 187.12.34.17, but my router's IP is 151.81.75.222, how can we transfer said files through the router to the proper computer ??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top