Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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


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   -  Reputation: 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.

Sponsor:

#2 DrJohnB   Members   -  Reputation: 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.



PARTNERS