Port Number Changes on Server
I've two different java codes, one server and one client.
Server listens on port 6789, and client sends messages on same port 6789.
Server gets client messages , no problem with that ,but when i print the port that message received from, it's different than 6789, and it changes everytime whenever i run client.
Example ; when i run client first time and send a message
server says it came from port 1927 after that i stop client and run again, next message is recevied from port 1928.
Why port number changes ? Why it isn't the same port number that i listen ?