Choosing a fixed TCP port for an application..

Mohan G <[email protected]>
Newsgroups gmane.linux.network.general
Message-ID <[email protected]>
Hi All,

We would need to choose a fixed port for communication between our
server and an external app. From time to time to we run into issues as
Linux assigns this port to another app during startup.

ip_local_reserved_ports  ( https://patchwork.kernel.org/patch/76954/ )
would have solved this cleanly but the kernel we are using does not
support this functionality. I see some people recommending using
unassigned/reserved ports at
http://stackoverflow.com/questions/133879/how-should-one-go-about-choosing-a-default-tcp-ip-port-for-a-new-service
 and this seems risky. Registering a port with IANA is an option but
the process seems to be lengthy.

This application does not need to be portable to other operating
systems so I am wondering if we could choose a port outside the Linux
ephemeral range as specified in ip_local_port_range max value. This
max value on Linux is 61000 so can a port number greater than 61000 be
used for such needs?

The Linux kernel versions I need to support are 2.6.14 and 2.6.27.

Thanks in advance !!!

-Mohan
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.