• Advertisement

Archived

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

sockaddr_in and client's IP

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