NeDark NeDark - 1 year ago 103
C++ Question

Get remote address/IP - C Berkeley Sockets

If I have a socket file descriptor connected (either by connect or by bind), type

, is it possible to get the remote address / IP address?

I need to do this within a function where I don't have any other data than the socket file descriptor.

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download