Solved

solaris ports usage

Posted on 2002-03-15
6
411 Views
Last Modified: 2013-12-27
hi,
   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
0
Comment
Question by:siunix
[X]
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
6 Comments
 
LVL 5

Expert Comment

by:nebeker
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...
0
 

Author Comment

by:siunix
ID: 6869407
why does the apps use big port like 45000?
0
 
LVL 5

Accepted Solution

by:
nebeker earned 100 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.

0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 51

Expert Comment

by:ahoffmann
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.
0
 
LVL 5

Expert Comment

by:nebeker
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...
0
 
LVL 5

Expert Comment

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

Featured Post

Independent Software Vendors: 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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

734 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