Choosing a fixed TCP port for an application..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux