DEV Community

Discussion on: How do you decide your application port number?

Collapse
 
jfrankcarr profile image
Frank Carr

The way I organized it for applications and web APIs on an internal network was to use a 4 digit number and have the first two numbers indicate the server and the second two indicate the application/API type. I went with even numbers for applications and odd ones for APIs. So, for example, 8891 might indicate a service on the accounting production server while 8792 might indicate an application on the shipping test server.