My question is... How can you find out what port the udp packets were sent on?
Here is the basic code:
Code: Select all
$Socket = socket_create(AF_INET,SOCK_DGRAM,SOL_UDP);
socket_set_option($Socket,SOL_SOCKET, SO_REUSEADDR, 1);
socket_bind($Socket,$IP_Address,$Port);
socket_sendto($Socket,$soap_out,strlen($soap_out),0,$IP_Address,1900);