I have two WebSocket servers running on different ports than 80 and 443. These two servers work behind a firewall that only opens port 80 and 443.
WebSocket Server A:800 | |-----|FireWall:80 & 443|-----> INTERNET WebSocket Server B:801 |
What I'm looking for is a way for my clients to connect to WebSocket servers without knowing their port and without me opening a firewall for any other ports, not 80 and 443.
So, I thought, maybe, an intermediate server (or proxy server) between my firewall and WebSocket servers can be configured so that when clients request www.mywebsite.com/a on port 80 or 443 (to pass the firewall) the intermediate server The client connects to the WebSocket A server at the level. And when the client requests www.mywebsite.com/b on port 80 or 443, the intermediate server connects it to the WebSocket B server. Is this possible? and if so, is there any server that you may know about that function is implemented?
In another note (maybe not quite at all), what would be the differences between the TCP hole and the approach described above?
source share