I have a server with a incoming socket from a client.
I need the get the IP address of the remote client.
Tried searching google for in_addr but it\'s a bit tro
Since you say it is an incoming connection from a client, as an alternative to getpeername you can just save the address that was returned by the accept() call, in the second and third parameters.