Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


solaris ports usage

Posted on 2002-03-15
Medium Priority
Last Modified: 2013-12-27
   I notice that application on solaris uses very
high port number, like 35000, when it tries to talk to the server.  I have an application running on port 1461,
when the client send a request to the server,
its destination port is 1461, and the source port
is 45009, which 45009 so big?  Is there a range
of ports that solaris uses?

thanks in advance
Question by:siunix
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4

Expert Comment

ID: 6869264
Ports go from 0 to 65535.  Anything below 1024 is considered "reserved", and you must be running as root to listen on those ports...

Author Comment

ID: 6869407
why does the apps use big port like 45000?

Accepted Solution

nebeker earned 400 total points
ID: 6869419
It is arbitrary.  An application can use any port it wants (above 1024), so developers tend to choose large number that probably won't conflict with other applications.

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 51

Expert Comment

ID: 6869659
developers tend to use socket() call to get a free socket/port for the system, its number is random if not explicitely requested. See man socket, man connect.

Expert Comment

ID: 6869705
That's only true for a client program, of course :)

A server type program wouldn't function very well if the clients didn't know where to find it...

Expert Comment

ID: 6887124
Has your question been answered?  If so, please accept one of the above comments as an answer and close this question.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question