Jump to content

[SOLVED] UDP port question...?Posted: Tue Oct 14, 2008 10:34 pm


0perand

Recommended Posts

I am sending out udp packets at port 1900. I am using a packet sniffer to monitor the actual network activity. The information from the packet sniffer shows that the UDP packets are sent out a random ports in the 50000s and it goes to the correct ip address and port.

 

My question is... How can you find out what port the udp packets were sent on?

 

Here is the basic code:

 

$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);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.