Jump to content
  • Advertisement
Sign in to follow this  

Routed IP:port

This topic is 926 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I wonder if I connect to some public point twice, over TCP/IP, what will this public point see for those two connections of mine, considering I am behind my router that is public point of mine:


will it see





The question is wheather the port will be the same or different for server observed endpoint of my two conections.


[EDIT] I forgot to mention both connections come out from the same local IP that routes to the router.

Edited by JohnnyCode

Share this post

Link to post
Share on other sites
It will see two different ports.

Every connection has a unique 4-tuple of { Source IP, Source Port, Dest IP, Dest Port}

If it is a different connection, the values must be different. Since the destination IP and destination port are fixed, and your box's ip is fixed, the only variable that changes is your machine's port.

By default your source port is assigned by the system automatically to an unused port.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!