solaris ports usage

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
siunixAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nebekerCommented:
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
siunixAuthor Commented:
why does the apps use big port like 45000?
0
nebekerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

ahoffmannCommented:
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
nebekerCommented:
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
nebekerCommented:
Has your question been answered?  If so, please accept one of the above comments as an answer and close this question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.