I've opened a TCP socket server (I've omitted a few stuff, it is taken from here
sockfd = socket(p->ai_family, p->ai_socktype,
p->ai_protocol))
Is it possible to get the IP address of the server from sockfd? If not where should I look?
EDIT: I want to know the address of the server (this is before any client connects).