if you are send the packet to a blitz client you could ask the client to first open a tcp port to your app... no need to send data this is enough for you to get the integer ip then use it with the udp commands... thats if your using a blitz client also.
client does this:
ipserver=OpenTCPStream("your address",8080)
closetcpstream ipserver
your app does this:
ipserver=CreateTCPServer(8080)
Repeat
ipstream=AcceptTCPStream(ipserver)
Delay 1
Until ipstream
ip=TCPStreamIP(ipstream)
clientip$=DottedIP$(ip)
...........
...........
SendUDPMsg stream,ip,8081
client does this:
ipserver=OpenTCPStream("your address",8080)
closetcpstream ipserver
your app does this:
ipserver=CreateTCPServer(8080)
Repeat
ipstream=AcceptTCPStream(ipserver)
Delay 1
Until ipstream
ip=TCPStreamIP(ipstream)
clientip$=DottedIP$(ip)
...........
...........
SendUDPMsg stream,ip,8081