We write the following program to send a packet. data = bHello, Server udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
Fantastic news! We've Found the answer you've been seeking!
Question:
We write the following program to send a packet.
data = b"Hello, Server"
udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
udp.sendto(data, ("10.9.0.5", 9090))
(1) How is the source port number of the packet decided?
(2) How is the source IP of the packet decided?
Related Book For
Posted Date: