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

Ab Himmit 96 Reputation points
2021-07-22T10:49:06.147+00:00

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 for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
0 comments No comments
{count} votes

Accepted answer
  1. Ab Himmit 96 Reputation points
    2021-07-25T09:59:17.893+00:00

    Thanks for your answer, all is good now.


12 additional answers

Sort by: Most helpful
  1. Ab Himmit 96 Reputation points
    2021-07-23T09:34:45.23+00:00

    Thanks you all,

    Some of the links above don't work, others did not give me the solution needed.
    I also used, as suggested, telnet, but it didn't help me more than before.
    I really have no clue what else to do, this is really a challenge.

    0 comments No comments

  2. Anonymous
    2021-07-23T13:36:11.84+00:00

    I'd start with from cmd.exe
    netstat -aon
    or
    netstat -aonb
    to confirm the process listens on the correct interface.

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

    0 comments No comments

  3. Ab Himmit 96 Reputation points
    2021-07-23T14:30:40.49+00:00

    Done all that. My Rest server is already listening using port 5000 on the guest VM.
    But I'm not able to connect to this server from the client side, which is installed on the host computer (w10)

    0 comments No comments

  4. Anonymous
    2021-07-23T14:41:32.603+00:00

    That doesn't help us, please post the result.

    Also post an unedited ipconfig /all of both

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.