Remote socket of UDP client?

BlitzMax Forums/BlitzMax Programming/Remote socket of UDP client?

It seems the SocketremoteIP command only works with TCp connections, is there a way of getting the IP of someone who is sending me a UDP message?

Yes, use 'recvfrom_'

signature is similar to this:

recvfrom_(socket:int, buffer:byte ptr, count:int, flags:int, sender_ip var, sender_port var)