tcp remote ports question


Most people know that you could go to a website like to find out your ip and other browser environmental variables.  On, you can see your "remote port" also... I was under the impression that TCP/IP ports are always from 0-9999, yet the remote port listed is a 5-digit port.  Not only that, but it changes every couple of seconds when I refresh.

I am connected to the internet via a cable modem with comcast as my ISP.  I am getting the address via DHCP...  The remote port is also showing up on access logs of devices that my computer logs onto in remote devices... what is this thing for and how is it different from TCP/IP ports?

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.

there are over 64000 tcp ports
the way it works is (using http as an example) your machine sends a packet out with the destination port of 80, but it requests the packet be sent back at a dynamically designated port, so that is why it changes when  you refresh

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
actually there are  65535 possible ports officially recognised
The port number range on a system is from 0-65535, of these the port range from 0-1024 is called as the reserved or well known ports. the range from 1025-49300 is called as the registered port and all ports above that are called as dynamic ports.
check this link for a detailed listing of all the pors

As stevenlewis pointed out, the system would send the request to the port 80 of the server, but the reply would come to one of the registered ports specified by the browser.
This is what helps us to use the same internet connection but have multiple simultaneous web sessions on the same system ( one google window, another running yahoo etc) each browser instance would be using a different port so that when i click on one link in yahoo, the result is not displayed in the google window but comes only in the yahoo window.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

meuedynAuthor Commented:
So I request a webpage from port 80 (of the server) and send a "remote port" along with the packet so that server knows to send the information requested to my ip address at the "remote port"?

Does it change for every web page I request?
Yes, and Yes
Hi meuedyn,
Right, the HTTP server listens on port 80. However, your browser, and other client applications, send requests and receive responses on arbitrary high-numbered ports.

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
Networking Protocols

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.