Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 DrJohnB   Members   

122
Like
Likes
Like

Posted 26 February 2000 - 01:34 AM

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.

#2 DrJohnB   Members   

122
Like
Likes
Like

Posted 26 February 2000 - 05:54 AM

"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!




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.