I have an archlinux machine setup a Windows 7 virtual machine using qemu. Network Source: NAT/ Device Model:virtio is the networking configuration for NATing. I am able to connect to the Internet just fine.
However, how do I connect to the host machine itself using IP? Actually, I want to access the webserver running in the host machine on multiple ports!
I tried opening the ipconfig's gateway which is 192.168.122.1 but that is not connecting to the nginx I am running on my host. For example http://192.168.122.1 doesn't bring up the nginx nor another webserver I run at another port. tracert is also not helping me much.
Indeed 192.168.122.1 is the vibr0 in my host and this is the gateway of the virtual machine.
ip neighon the host should show an entry, for the IP address of the VM. (You can probably useip -4 neigh, if you're not using a v6 address).ip -4 neigh show dev virbr0on host after connection attempt please, and/ortcpdump -i virbr0during.