VMware Communities
VMantti
Contributor
Contributor

Ping from laptop to vmware player server

Hi,

I have vmware player installed to my laptop (win7) and there is a linux server up and running under player.

I would like to have browser connection from my laptop to this linux machine IP ( to launch tomcat application on linux server).

There is no command prompt ping connections from laptop to the linux machine.

I have been created static IP for linux machine eth0 and it's pinging itself.

I do not even need external connections from my laptop to outside word, all what I need is to configure laptop internal communications

working btw. these two environments.

Any routing suggestions available?

Thanks,

Reply
0 Kudos
6 Replies
a_p_
Leadership
Leadership

In this case set the VM to Host-Only and either configure the guest to automatically receive IP settings (DHCP) or set an IP address in the VMnet1 (Host-Only) range (192.168.x.2 ... 127).

André

Reply
0 Kudos
VMantti
Contributor
Contributor

What those two alternatives means in practice?

Does first altenative means that I have to change server file ifcfg-eth0 line to BOOTPROTO=dhcp?

After this modification I can not see any IP available in ifconfig...

Second alternative, I can not see any Ethernet adapter VMware Network Adapter VMnet1: line in my laptop

ipconfiguration. I'am using Player 5.0.0.0build-812388.

Something wrong with my vmware player installation or "old" version installed?

Reply
0 Kudos
a_p_
Leadership
Leadership

... I can not see any Ethernet adapter VMware Network Adapter VMnet1: line in my laptop ...

If VMnet1 doesn't show on the host, then you won't be able to connect to the guest, no matter how you set it up. Maybe the installation of VMware Player went wrong (due to permissions, UAC, ...) and needs to be fixed.

André

Reply
0 Kudos
VMantti
Contributor
Contributor

Rigth, my ethernet adapter for VMnet was disabled in some reason.

With enabling adapter & making host-only and creating fixed vmsubnet IP for server, I got ping access from

laptop to server.

Thanks,

Reply
0 Kudos
VMantti
Contributor
Contributor

There is still need to route this vmnet IP 192.168.147.2 somehow inside server to it's application (tomcat) IP xxx.yyy.zzz.xxx:8080.

Target will be that when I run this vmnet IP with my browser it will be automatically routed toward that IP and port.

Is that somehow possible?

Reply
0 Kudos
a_p_
Leadership
Leadership

There is still need to route this vmnet IP 192.168.147.2 somehow inside  server to it's application (tomcat) IP xxx.yyy.zzz.xxx:8080.

Assuming the VM has IP 192.168.147.2, then Tomcat should listen on 192.168.147.2:8080. With the host having a VMnet1 virtual adapter with IP 192.168.147.1 the traffic should be routed to the guest properly.

André

Reply
0 Kudos