All Questions
3
questions
2
votes
0
answers
2k
views
WebSocket connections originating from local network all use same client-side port (instead of ephemeral) when connecting to local webserver - Why?
I set up a webserver on a virtual machine on my home desktop. I have my router forward several ports (80, 443, etc) to my desktop, when then forwards them via NAT to the virtual machine (see diagram ...
4
votes
1
answer
5k
views
How can I know what is preventing my socket to bind to localhost:50060-50959
I am using this Python code to listen to a port on my Windows 10 system:
import socket
for port in (50059, 50060, 50959, 50960):
try:
print(socket.socket(socket.AF_INET, socket.SOCK_STREAM)....
0
votes
1
answer
2k
views
List all open sockets in /dev/tcp/localhost/
Is it possible to list all open sockets in /dev/tcp/localhost/ on a Linux machine?
I want to list all sockets where the following command would return 0:
timeout 2 bash -c "cat < /dev/null > /...