Remote IP and Port of a UDP socket

BlitzMax Forums/BlitzMax Programming/Remote IP and Port of a UDP socket

How can you get the remote IP and port of a udp sent message?. The supplied commands dont work at all.

SocketLocalIP()
SocketLocalPort()
SocketRemoteIP()
SocketRemotePort()


As I understand it, the UDP packet should have the source information present in its header, so this should be possible!