Unable to ping vmware guest from another vmware guest - virtual-machine

I would like to ping one vmware guest from another one. Both are Windows XP and use NAT. I set IP manually for VMnet8 to 192.168.18.1. (no using Obtain IP address automatically). Also I'm not able to ping neither guest1 nor guest2 from host.
I'm using VMWare Player 5.
Host machine (Windows 7):
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::dc81:34e2:779d:595d%19
IPv4 Address. . . . . . . . . . . : 192.168.18.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Guest 1:
Connection-specific DNS Suffix . : localdomain
IP Address. . . . . . . . . . . . : 192.168.18.131
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.18.2
Guest 2:
Connection-specific DNS Suffix . : localdomain
IP Address. . . . . . . . . . . . : 192.168.18.132
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.18.2
Any suggestions?
Thanks!

I just ran into the exact same problem while configuring my server 2008 and windows 7 vm's in
VMware workstation 9. what helped is disabling the firewall and running the following command at the windows command prompt
netsh firewall set icmpsetting 8 enable
at that point I was able to ping one VM then both once I performed the command on both. this differnce between our scenarios is I have my VM configured using Bridged connections

I know it is an old question, but I had a similar trouble recently. On VMware Workstation 12.+ go to Edit -> Virtual Network Editor... Select a network used by the problematic VM and make sure that "Connect a host virtual adapter to this network" checkbox is set for this network. In my case, it was not. After it was set, the host was able to ping the guest and guests were able to talk to each other.

You can ping ip from one virtual machine to another machine by using these steps:
Go to menu VM -> Setting -> select network adapter: NAT
Go to menu VM -> setting -> select options Tab and select
Guest Isolation : ENABLED, ENABLED and select box : ENABLE VMCI

Make network setting as Bridged.
Enable VMCI (this enables hosts , guests to communicate with each other)

If i am understanding your question. You now have both VMs on the same network segment VMnet8,
Enable file and print sharing from the firewall settings on both VMs
Ensure that from the host machine (Windows 7) that the network adapter for VMnet8 is enabled. Also open the network adapter to check if you are actually connecting to VMnet8 network address. Then try to ping both addresses.
If this still doesnt work, perform ipconfig/all from host machine and paste the output here so that i can see how the network address are distributed.
Thanks

Try installing VMware tools in guest operating system.
Check if firewall is enable
If 1 and 2 are ok, try using share internet connection
After sharing connection the VMnet8 IP address will be changed to 192.168.137.1, set up the IP 192.168.18.1 and try again

Check the firewall on all the windows system. If it's enabled,
disable it.
If you still are unable to ping, Open the virtual network editor and
check if you are using the same VMnet adapter for both the VM's,
this adapter should be present in the host machine's network
adapters as well. Share a screenshot of what you are seeing in the
virtual network editor.

I have been able to ping from VMs and the host by setting the VM's network settings to "Bridged" mode. This, in short, places them all on the same physical network. This coupled with your static IP addresses should do the trick.

In Menu bar
select the Host-> Virtual Network Settings -> Host Virtual Network Mapping...
set your drop down list as your host Network Adapter...If You can not ping Check your Firewall Status Because the Firewall is blocked the 'ping' packets

On both Operation Systems, must turnoff firewall.
I using MS SERVER 2012 R2 & MS WIN-7 as a client. First of all call "RUN BOX" window logo button+ R, once RUN box appeared type "firewall.cpl" at Window Firewall setting you will see "Turn Window Firewall On or Off" like this you click it & chose "turn off window firewall" on both Private and Public Setting then OK. Ping again on guests OS.
GOOD-LUCK
Aungkokokhant

I would like to add, that yes. While using the NAT adapter settings in Vmware and turning off windows firewall I was able to ping other guest machines in my test environment.
Sidenote: Best practice would be to implement a hardware firewall in larger environments and turn off windows firewall on the Domain Controller.

There are several related solutions available on the internet, but it all depends on the configuration of the machine and the firewall rules.
For me below solution is worked:
Disabled the VMware Network Adapter VMNet8
Removed the network from the VM
Enabled the VMware Network Adapter VMNet8
Re-added the Network to VM, and set it to NAT
Restarted the machine
Check this blog post for detailed solution.

If the Guest OS is Windows follow below steps -
For Windows 10 -
Turn off the Firewall Protection Completely in the Windows Guest OS
Open Windows Security App > Select Firewall & Network Protection > Turn off Firewall for Domain Network, Private Network & Public Network.

You can fix this issue by following the steps defined in this post also.
If you have a firewall enabled in Windows, ping requests are blocked by default. I have virtual machine on VMWare configured as windows server with IP address manually assigned as 2.2.2.5.
Now to ping guest ip address 2.2.2.5 from my host machine I have to do two things only on guest machine
If you are in workgroup and not in Domain then Set your guest machine current Nework profile to private
Turn off firewall on private network(if on workgroup) on guest virtual machine
OR
Enable Inbound firewall rule for File and Printer Sharing (Echo Request - ICMPv4-In and ICMPv6-In. There are three rules one for each (public, private, domain environment so enable rule based on your environment)) /* This is recommended instead of turning firewall off on private network */
Now the ping 2.2.2.5 should work from host pc

I came to the same problem and tried all methods on internet, and finally worked it out by accident. May you could try this(see in the picture)

Related

uncaught-error-java-net-connectexception: failed to connect to /192.168.1.2 (port 19000) from 192.168.1.5 (port 42176)

I am running react native project from WSL2.
I followed the steps in this blog https://hinty.io/devforth/how-to-install-wsl-2-best-way-to-run-real-linux-on-windows/ to install WSL and ubuntu.
and I enabled the CPU virtualization and windows server Linux feature,
then I installed node and yarn in WSL2.
To run the project:
cd to project path
set REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.2
yarn start or expo start
when I open it from expo app on my mobile I have that error uncaught-error-java-net-connectexception: failed to connect to /192.168.1.2 (port 19000) from 192.168.1.5 (port 42176)
knowing that I already check my IP from cmd command ipconfig and the Wireless LAN adapter Wi-Fi:
IPv4 Address. . . . . . . . . . . : 192.168.1.2
Any help why I have that error and how to fix it?
Okay for me the solution was to run a ps1 file from the administrator PowerShell. This file is used to:
Delete old firewall rules it has created.
Create new firewall rules for the port forwarding
Delete all old port forwarding rules(if reset=1)
Create/replace port forwarding rules based on WSL2's current IP address
I got same error. and i changed on firewall configuration. i make all incoming request are allow and its has solved.

Proxying a port for Virtualbox NAT is inconvenient - can't I provide the host with an IP instead?

I want to be able to SSH into a VM Guest of Virtualbox where the guests are sharing a NAT Network.
LocalNat Portforwarding (See https://www.pythian.com/blog/test-lab-using-virtualbox-nat-networking/ Set Up Portforwarding) is inconvenient vs. having an IP address on the NAT for the host.
Port forwarding requires me to keep specifying the port, e.g. in scp -P 2222 from-file localhost: and it messes with SSH keys as localhost now has two host identities, my laptop and the VM's ssh-rsa key.
Rather than port-forward, is there not a way of just adding another IP for my Virtualbox host?
Thanks, Martin.
You can set up a host-only network in addition to the NAT network. A host-only network is a local network which can connect to both the host and to individual VMs. The host and the VMs can communicate with each other through it.
Using the virtualbox GUI, go to Virtualbox manager > File > Preferences > Network and set up a host-only network. Enable the DHCP server. You could use these settings:
host adapter address is 192.168.56.1
DHCP server address is 192.168.56.100
Both masks are 255.255.255.0
The server address range is 192.168.56.101-192.168.56.254
This gives you the addresses from ...56.2 through ...56.99 to use as static addresses. You can manually assign them to VM interfaces if you like.
After setting up this network, you should see a virtual interface on your host system with the correct IP address (the one assigned to the adapter).
Now, go to network settings for the VM. Add a new network adapter. Set "attached to" to the "host-only adapter", and the name to the host-only network that you set up earlier.
Start the VM. It should see the host-only adapter in addition to whatever adapters it was using before. If it's a modern operating system, it'll probably query the DHCP server and set up the interface on its own. Alternately, from inside the VM OS, you could manually assign static addresses to these interfaces.
You can assign a host-only adapter to a VM in addition to its existing NAT adapter. In the past I've had a windows VM and an Ubuntu Linux VM set up this way. Both VMs and the host had no trouble communicating with each other as well as the Internet.

Install Apache server on 4G Network

I have installed XAMPP to run Apache server on windows,So the Apache server run great on LAN (Local Area Network ).
But i need to run the server ,so the public can access it from WAN
(Wide Area Network) .
I have forward HTTP port 80 on 4G portable router ,but no device can access the Apache server from Public (WAN)
** I have tried DDNS solutions also with no success.
The issue is most likely the 4g network itself. It seems they don't allow servers to wait on their network.

Not able to ping to ESXi6 from centos vm

I am new to esxi.I have installed centos vm on esxi.esxi is connected to network.I have set the static ip to centos.Problem is when i try to ping esxi from the guest vm, its not pinging.I tried google it but i didnt get the info about ip configuration of guestvm(cent os).what should be the proper configuration to connect it to the network
Can you describe you configuration and task more detailed? In general, after ESXi install in Configuration -> Networking you'll see Standard Switch with vmkernel port "Management network" with ESXi IP and portgroup "Vm Network". If you have no VLANs and one subnet, you need to set VLAN ID on both vmkernel and portgroup to "None (0)", and made same subnet/gateway settings on vmkernel and inside guest. At last, you need to set in VM Settings - Hardware -> Network Adapter 1 -> Network Label to "Vm Network". It's difficult to advise more without info.

Overcoming the loopback device on a VM

Due to various constraints I've found myself in the following situation:
I have access to an API which starts a service on the loopback device of a computer (127.0.0.1). This computer is actually running on a VM being hosted by the client. The client will be using the same API to connect (which, of course, will connect via the loopback device).
The API is intended to be a service which executes on the same machine as the host and the client - it's a communication layer essentially. The two software components (ie, the endpoints), are incompatible, so we have them configured this way: the client hosting the server on a VM.
The VM is Virtualbox, with a Bridged Adaptor network setup.
They're both running Windows XP.
How do I get them to communicate?
EDIT: I cannot make changes to the communication service, but I can make whatever other changes are necessary to the VM or the host.
Expanding on #EJP's suggestion to use port forwarding, the required command is covered in User Manual, ยง6.3.1 Configuring port forwarding with NAT. Suppose your service on guest "VM name" is a web server listening on port 80. You can forward host port 12345 to guest port 80 like this:
VBoxManage modifyvm "VM name" --natpf1 "service,tcp,,12345,,80"
When you browse http://127.0.0.1:12345 on your host, the guest server will respond. You can delete the setting using something like this:
VBoxManage modifyvm "VM name" --natpf1 delete "service"
You can examine the setting using something like this:
VBoxManage showvminfo "VM name"
You're going to have to change the service not to bind to 127.0.0.1 if you can. Otherwise you will have to install some kind of proxy in the VM, or organize some port forwarding if you can.