Returns the IP address of the peer.
Result = GETDSTIP( socket)
A LONG variable that will be assigned with the IP address of the peer or destination IP address.
The socket number (0-3)
When you are in server mode, it might be desirable to detect the IP address of the connecting client.
You can use this for logging, security, etc.
The IP number MSB, is stored in the LS byte of the variable.
Dim L as Long
L = GetdstIP(i) ' store current IP number of socket i