Reputation: 59
I have to write a Socket
communication program to implement
Inter Process Communication.
I understand I need to have a client and server implementation. Server implementation:
MyServerice = new ServerSocket(PortNumber);
Client and server will be on same machine so I don't want to interfere with any other running applications
How to decide which port number to use?
Upvotes: 3
Views: 1069
Reputation: 9
I think in implementing the websocket object, the WebSocket protocol communications typically use TCP port number 80, so environments that block non-standard internet connections by using a firewall will still pass WebSocket packets.
Upvotes: 0
Reputation: 48258
You can look at this table those are mostly all, you will never know if any other external app is taking the port you have in mind, so in your case is a
Firt to come, first to serve issue
Upvotes: 2