Determine The Web IP ??? Possible ???

Hi folks , in my application it is required to display the user IP and the web IP.Since i am developing a networking application I know how to obtain the IP address using Winsock
but unfortunately I dont know how to obtain the web IP which i think is impossible to obtain by local means.
I retrieved the web IP in my server application which was developed in VB.nET using The Msinet.ocx control.
(By connecting to findmyip.com and filtering the contents to the IP part) since i am using C++ (console application) i dont know how to accomplish this.. any ideas would be appreciated thanks
You need to do a DNS lookup. See gethostbyname.
Topic archived. No new replies allowed.