Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

When my web browser connects to a website, the source port my end is a number like 27825, what range of ports can it use and how regularly does it change?

share|improve this question
    
I couldn't find anything about the part > how regularly does it change? But what range of ports can it use is answered here on Server Fault –  user 99572 is fine May 26 '13 at 11:09
add comment

closed as off topic by John Conde May 26 '13 at 14:30

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

When you connect to a website you are connecting on port 80 which is the default port for all HTTP services, you can connect to websites that use other ports such as 8080 but you need to use http://domain.com:8080 unless they have the port 80 service redirect to another port.

Internal Loop backs

Now with this said and to answer your question, browsers establish connections on the remote host port that is setup on their server i.e port 80. Browsers do not communicate as far as I know on any other port unless the server its running on another port, if you are using a TCP monitor you will see Firefox, IE, Chrome etc operating on ports other than 80 then what your seeing is internal loop backs which these platforms use to communicate within the software. Take a look at TCP View from Microsoft you will notice that on the left side you have local port, and remote port. The local port is the internal loop back and the HTTP service is running on port 80 and that's how the data is being communicated externally.

share|improve this answer
    
Port 80 is the port of the web server, the "Destination port" I am referring to the source port. –  h00j May 26 '13 at 14:00
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.