Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-13-2011, 08:09 AM   #1
Registered: Jun 2008
Posts: 57

Rep: Reputation: 0
need to know ports on client and server side

Hi I need to know about the ports on the client computer. I am precisely talking about the ports viewed from tcptrack and can anybody explain why the client ports are in the range of 10000.The server ports are most of the time 80,443,25,110.
Old 10-13-2011, 08:25 AM   #2
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
because the clients make a connection to the server (e.g. 80) and then the server 'moves' to a higher dynamic ports to operate with client only, thus no-one other is using the same data connection
0 members found this post helpful.
Old 10-13-2011, 08:26 AM   #3
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
The short answer is, source ports (what your seeing in tcptrack) are random unused ports.
In the case of web browsing for example, they are destined for port 80, but come from any port, this is how you can have multiple simultaneous connections to different servers, on the same destination port. Where if they all came back to you on the same port, things the client program (that sends the original requests), would get confused..

At least, that is how I understand it.
1 members found this post helpful.
Old 10-13-2011, 09:31 AM   #4
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
let's take the example of http server operating on port 80 on the server.
the server needs to stay on port 80 because this is the door the clients knock on to request http data.
all the clients talk to it from different IP addresses and different source ports. So the server can keep track of who is who.
The clients open a free port on the laptop before using it to talk to the server. they use this port to send the request to port 80 on the server, then listen on that port for an answer originating from port 80 of the server.

non root users cannot create sockets on ports with low numbers (I believe 1200 is the threshold, but not sure). This prevents a non root user from opening a socket on port 80 which would prevent the administrator from launching a http server that would need to own that port.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN - Can't ping from server to client side hosts. ycats Linux - Networking 3 09-17-2017 10:19 AM
How to login multiple client pc on using via openvpn server from client side raja6525 Linux - Networking 1 11-24-2010 10:42 AM
can't get access to client-side network from server-side network through openvpn nass Linux - Server 1 11-02-2009 05:41 AM
x264 Streaming media server & client decompressing on server-side? Pearlseattle Linux - General 2 12-12-2007 12:04 PM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 09:52 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration