• Advertisement

Archived

This topic is now archived and is closed to further replies.

What function returns the IP address of host machine (locally) with WinSock? <mt>

This topic is 6541 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m trying to get the internet address of my computer for the current session (changes every time I connect to my ISP I know). I think I have to pass the SOCKADDR_IN structure to a certain function, but I can''t figure out which. I''m looking for either a Win32 or MFC solution. I''m using WinSock, not DirectPlay. I hope you understand my question. Please let me know if I need to make myself clearer. I know there are programs out there that can tell you your computer''s IP address, but I want to write my own so to speak. Thanks for your time.

Share this post


Link to post
Share on other sites
Advertisement
"Hope that was what you were looking for..."

Boy was it! I was really close, but that worked perfectly. Thank you very much.

Now my chat program is complete!

Share this post


Link to post
Share on other sites

  • Advertisement