Jump to content
  • Advertisement

Archived

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

Cloxs

sockaddr_in and client's IP

This topic is 6925 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

How do I get the clients IP without using Inet_ntop();? I''m working with OS X, and it chokes on Inet_ntop (compiles, but doesn''t link ). Thanks in advance. "When people tell you they want to hear the truth, you know that their lying."

Share this post


Link to post
Share on other sites
Advertisement
you can use inet_ntoa to convert a in_addr struct into a dotted decimal string. inet_ntop can be flaky if you aren''t running on a system with IPV6 support.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!