"Millions of connections" on a VPS #477
-
Hey guys, sorry if my question is dumb, but I'm not DevOps or anything. I've read this article by Alex Hultman https://alexhultman.medium.com/millions-of-active-websockets-with-node-js-7dc575746a01. It says he had to set up a range of IPs on his local WebSockets server, then connect 20k clients to each IP. My question is:
It would also be nice to hear from ppl who have already used this method on remote servers. Did it go well? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, TCP uses a 16-bit port number. So there is a limit of 65k connections per identical IP pair. If you accept connections from wildly different hosts on the internet your server only needs 1 IP |
Beta Was this translation helpful? Give feedback.
Hi, TCP uses a 16-bit port number. So there is a limit of 65k connections per identical IP pair.
If you accept connections from wildly different hosts on the internet your server only needs 1 IP