Hello everyone.
I want to know how to get my internet IP without going to a "www.ip-address.com" or somthing to get it. I thought about using winsock, but i am still a winsock beginner. I want to connect to 127.0.0.1 (loopback ip) and do a GetHostInfo() command of some kind to get the ip. The ip i want is not the same ip you can get on CMD. I want the "internet IP", the one that you would use for another client to connect to.
Thanks.
u8sand
68
Junior Poster
Recommended Answers
Jump to PostTo my knowledge this isn't plausible. This is why: you have an internal IP address, on your computer, probably something like 192.168.1.101. Loopback (127.0.0.1) is an entirely different interface... so, let's just say that your connection to the internet is through Ethernet 0 (eth0). eth0, basically asks the router …
All 4 Replies
Comatose
290
Taboo Programmer
Team Colleague
u8sand
68
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
u8sand
68
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.