...the sockaddr struct, although I do get a port... Code:
sockaddr_in sourceAddr;
socklen_t addrLen;
recvfrom(socketfd, buffer, avail, 0, (sockaddr*)&sourceAddr, &addrLen);
inet_ntoa(sourceAddr.sin_addr) gives "0.0.0.0"
ntohs(sourceAddr.sin_port) gives "50717" (or whatever the remote port...