question

AbHimmit-6209 avatar image
0 Votes"
AbHimmit-6209 asked DSPatrick answered

Cannot connect to background rest server using port 5000 on hyper-v windows guest

I have a hyper-v windows 7 guest. I also have a Rest server listening to port 5000 on this guest.
From the windows 10 host I can ping this VM. And I can ping the host from this VM.
I have added a rule to the firewall on this VM.
I'm using nmap to see if port 5000 is open on the VM, but I keep getting the status "filtered".
I cannot get port 5000 to open on this VM.
Any idea why the port 5000 cannot be opened on this VM?

windows-server-hyper-v
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

Assuming you're asking about this one?
TCP 127.0.0.1:5000 0.0.0.0:0 LISTENING 2324

When it says 127.0.0.1 on the Local Address column it means that port is ONLY listening for connections from your PC itself, not from the Internet or network

--please don't forget to upvote and Accept as answer if the reply is helpful--










5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AbHimmit-6209 avatar image
0 Votes"
AbHimmit-6209 answered

Altered the Rest Server settings. Now the netstat is showing;
TCP 0.0.0.0:5000 0.0.0.0:0 LISTENING 3348

Port 5000 seems to be open now and I can get to my data.

Thanks all for your help.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

--please don't forget to upvote and Accept my answer if the reply is helpful--


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.