I have a WSL2 instance with Ubuntu 22.04. I have installed microk8s and enabled the local registry. The local Registry in microk8s listens on node port 32000. I can access this registry in WSL on both localhost and WSL instance IP. But if I run netstat -an there is none listening on port 32000. I tried a tip to list iptables rules, but nothing mentioning port 32000.
I can start
netcat -l -s -p 32000
just as none is using it. If I then curl -v :32000
I get a response from microk8s registry, not netcat. If I now run netstat, it lists netcat listening on port 32000.
How is this possible? How can curl connect to this port no one is listening on (according to netstat)? How can I open this port for listening using netcat while registry obviously is already listening on it?
Asked by maloo
(111 rep)
Feb 14, 2024, 10:29 PM