labahost
12-13-2005, 08:38 PM
I'm designing an application with it's own protocol and I need to choose a port for it, what port should I choose (or how should I decide what port to set as default for it)?
![]() | View Full Version : choosing a port for my application labahost 12-13-2005, 08:38 PM I'm designing an application with it's own protocol and I need to choose a port for it, what port should I choose (or how should I decide what port to set as default for it)? Hostex Australia 12-13-2005, 09:38 PM Any port that isn't already well known for being used with certain apps should be fine. Patrick 12-13-2005, 09:49 PM Take a look at /etc/services if you can to get a rough idea of what ports are most commonly used, already. labahost 12-13-2005, 10:08 PM Take a look at /etc/services if you can to get a rough idea of what ports are most commonly used, already. So if for example 96 port is not used there, can I use it? innova 12-13-2005, 10:23 PM If you want it to run on linux and not require root, you have to put it on a port higher than 1024. error404 12-14-2005, 12:50 AM You shouldn't use a privileged port. As far as I know, there's an 'official' registry of what services run on each privileged port. Yours probably doesn't qualify :p. Burhan 12-14-2005, 04:11 AM The IANA maintains the official registry of assigned ports (http://www.iana.org/assignments/port-numbers). Slidey 12-14-2005, 07:26 AM pick something nearer the top end, not iana assigned/registered and you wont go too wrong labahost 12-14-2005, 07:46 AM Thank you, I decided to use a higher port and then implement http tunelling (if there will be a lot of troubles with firewalls) error404 12-14-2005, 09:22 AM The IANA maintains the official registry of assigned ports (http://www.iana.org/assignments/port-numbers). Ah so it's not even just privileged ports. Handy link, thanks. mellow-h 12-14-2005, 10:39 AM I'm designing an application with it's own protocol and I need to choose a port for it, what port should I choose (or how should I decide what port to set as default for it)? just choose any port, as the product will cost everything, not the port :) |