Oracle Solaris Networking (MOSC)

MOSC Banner

Can 2 listening servers bind to the same port with different local IP address as the same user?

edited Sep 21, 2018 3:33PM in Oracle Solaris Networking (MOSC) 3 commentsAnswered

Hi,

Can Solaris be configured to allow 2 listening servers bind to the same port with different local IP addresses and different effective UIDs, assuming both sockets are configured with SO_REUSEADDR?

My test development environment:

- Oracle Solaris 11.3.13.4.0  (from "Summary:" field of "pkg info entire" command)

- uname -a output:  SunOS myhost 5.11 11.3 sun4u sparc SUNW,SPARC-Enterprise

The Solaris 11.3 SPARC production environment will have the newest (or close to it) SRU.

The problem can be demonstrated with netcat.  One listening server binds to INADDR_ANY, port 55555.  The other binds to myhost, port 55555.

Example that works:

Shell1:  (user1@myhost)netcat -4 -l -p 55555

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center