Skip to main content
14 events
when toggle format what by license comment
Jan 4, 2016 at 12:23 audit First posts
Jan 4, 2016 at 12:25
Dec 16, 2015 at 13:01 comment added grawity_u1686 @DmitryGrigoryev: Whether you initiate a connection or accept it does not matter to TCP, as there's still one IP address and one port at either end. In the webserver's case, the "local IP" and "local port" are the same across all connections, for a proxy the "local IP" and "remote port" are the same, but either way that leaves two variables and the same amount of possible connections. (The TCP/IP spec even allows both sides to initiate the same connection at once.)
Dec 16, 2015 at 11:29 comment added Dmitry Grigoryev @grawity Web servers are not a particularly good example, because they don't initiate connections like proxies do. But I get the idea.
Dec 16, 2015 at 6:15 comment added grawity_u1686 @IanBoyd: But you can use the same port for more than one connection. Think about it – how does a web server handle hundreds of connections to the same server IP & port 80? Because those connections differ in source IP and port.
Dec 16, 2015 at 2:39 comment added Ian Boyd @plugwash TCP/UDP ports are limited to 16 bits (65,536). No TCP implementation could open more ports than that; as there is no way in the TCP/UDP protocol to put it.
Dec 15, 2015 at 15:57 comment added plugwash "Does this mean that I can establish more than 65536 connection from a single computer as long as destination addresses/ports are different?" there is no reason why a TCP implementation allowing this could not be written. Whether any of them actually do support it is another matter.
Dec 15, 2015 at 13:53 history edited grawity_u1686 CC BY-SA 3.0
added 149 characters in body
Dec 15, 2015 at 13:29 comment added grawity_u1686 @DmitryGrigoryev: You certainly can as far as TCP is concerned, though usually the OS will impose other kinds of resource limits. (For example, one process is usually limited to ~1000 open files on Linux, and that includes TCP connections.)
Dec 15, 2015 at 13:20 comment added Dmitry Grigoryev Does this mean that I can establish more than 65536 connection from a single computer as long as destination addresses/ports are different? This goes against my (limited) knowledge of TCP/IP.
Dec 15, 2015 at 13:19 comment added Hastur Not needed external support: through successive whois requests, the whole bunch 82.148.97.x belong to Mobile-Broadband-Pool-No-6, ISP infrastructure... Some used IP from Qatar...
Dec 15, 2015 at 13:09 history edited grawity_u1686 CC BY-SA 3.0
added 139 characters in body
Dec 15, 2015 at 13:01 history edited grawity_u1686 CC BY-SA 3.0
added 476 characters in body
Dec 15, 2015 at 12:58 history edited grawity_u1686 CC BY-SA 3.0
added 476 characters in body
Dec 15, 2015 at 12:48 history answered grawity_u1686 CC BY-SA 3.0