0

I am using windows 11 ( Host OS).

I have VMWare Workstation Pro where Ubuntu VM was created.

In that Ubuntu VM, there is web application which is running on port 19000.

Inside VM(Ubuntu), the below URL is working from browser or curl command.

http://localhost:19000/ping

Inside Host(Windows 11) , the below URL not is working from browser or curl command.

http://localhost:19000/ping

Should I configure on windows 11 or VMWare Workstation?

1
  • http://localhost:19000/ping would refer to the host not the VM
    – Ramhound
    Commented Oct 25, 2022 at 16:36

1 Answer 1

0

localhost refers to the current computer. The host and the VM are two different computers, so localhost in the host is the host, while localhost in the VM is the VM (and not the host).

Use in the Ubuntu VM the command ifconfig to find out its IP address. You may then use this IP in the host with a URL like http://IP:19000/ping.

Note this this further depends on the setting you have used for the Network adapter of the VM.

2
  • Now network adapter is configured to NAT. I tried using above, it is not working. Commented Oct 26, 2022 at 12:30
  • What are the IP addresses of the host and VM?
    – harrymc
    Commented Oct 26, 2022 at 13:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .