![](sad.gif)
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
sockaddr_in and client's IP
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."
![](sad.gif)
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement