VMware Communities
aalishan
Contributor
Contributor
Jump to solution

How to configure VM to access the application from windows host

Hi,

  I create and new VM and deployed an application that I want to access from outside VM.

My Laptop operating system : Windows 7

VMware version: Workstation Pro 12

VM settings

pastedImage_0.png

Results from ifconfig

[root@localhost hyder]# ifconfig

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500

        inet 172.17.0.1  netmask 255.255.0.0  broadcast 0.0.0.0

        ether 02:42:16:93:7c:fa  txqueuelen 0  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.85.155  netmask 255.255.255.0  broadcast 192.168.85.255

        inet6 fe80::20c:29ff:fe54:dd3e  prefixlen 64  scopeid 0x20<link>

        ether 00:0c:29:54:dd:3e  txqueuelen 1000  (Ethernet)

        RX packets 5552  bytes 7247079 (6.9 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 2898  bytes 307666 (300.4 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens37: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.17.130  netmask 255.255.255.0  broadcast 192.168.17.255

        inet6 fe80::20c:29ff:fe54:dd48  prefixlen 64  scopeid 0x20<link>

        ether 00:0c:29:54:dd:48  txqueuelen 1000  (Ethernet)

        RX packets 1380  bytes 196227 (191.6 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 365  bytes 34395 (33.5 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 0  (Local Loopback)

        RX packets 97609  bytes 26460105 (25.2 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 97609  bytes 26460105 (25.2 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I am able to access my application inside VM using browser at address https://192.168.85.155:8443/

Can someone please help advise how to configure the network?.

Thanks

Aali

0 Kudos
1 Solution

Accepted Solutions
RJB3ST
Enthusiast
Enthusiast
Jump to solution

Hello,

What guest OS is the VM running? and what application are you trying to run on the VM?

Have you tried setting up port forwarding in VMware Workstation, please see the link below for instructions with how to do so:

How to Setup Port Forwarding in VMware Workstation 9 | Virten.net

This should still apply for version 12.5.x.

I'm not sure if that's going to work but worth giving a go.

Kind Regards,

RJ

View solution in original post

0 Kudos
3 Replies
RJB3ST
Enthusiast
Enthusiast
Jump to solution

Hello Aali,

If you want to access the application from the host machine only, then NAT will be fine to use. I'm not sure why you have a host only nic as that will only talk to other VMs, so you will want to remove that, unless you need it for some reason.

For the access to the application, can you ping the VM from your host? Do you have windows firewall enabled on the VM?

Can you post a screenshot of the NAT configuration when you go into vmware workstation network editor, just to see if anything is misconfigured.

0 Kudos
aalishan
Contributor
Contributor
Jump to solution

Hi RJ,

  Thanks for you reply

  I enabled Host-only nic to configure VM to be able to talk to VM2. This is my another requirement after I successfully configure VM1 application accessible from host .

  Ping VM from host (windows) .. looks good

pastedImage_0.png

I disabled the firewall on VM

pastedImage_1.png

Nat configuration

pastedImage_2.png

pastedImage_3.png

0 Kudos
RJB3ST
Enthusiast
Enthusiast
Jump to solution

Hello,

What guest OS is the VM running? and what application are you trying to run on the VM?

Have you tried setting up port forwarding in VMware Workstation, please see the link below for instructions with how to do so:

How to Setup Port Forwarding in VMware Workstation 9 | Virten.net

This should still apply for version 12.5.x.

I'm not sure if that's going to work but worth giving a go.

Kind Regards,

RJ

0 Kudos