Dev-C++ and my IP
I am writing my first good winsock program, and it requires the IP address of the host computer. I have searched the forums, and my books and tutorials, and have not found a good way to do this. The thing that hinder's me is that i con't have inet_atoi(), or don't know how to use it. If someone knows how to do this, or has some insight, i would be very appreciative.
I'll bet a dime that the IP address for the host computer is 127.0.0.1.
>I'll bet a dime that the IP address for the host computer is 127.0.0.1.
I think he means external IP address.
what they said is the local. If your on a router or shared connection the ip everyone out here sees is the same for each computer. If it is one computer on the web directly just go to ipchicken.com
>If it is one computer on the web directly just go to ipchicken.com
He wants to find his computer's internet IP from within his program, not a website.
Sorry, I don't know how to do it either.
Maybe there is some documentation on inet_atoi() somewhere out there on google or something...