I use virt-manager to administer my virtual machines. I would like to communicate a virtual machine (Windows) with the host machine (GNU/Linux).
I use the default network interface, which is a bridge in NAT mode, with the network address 192.168.122.0/24. When I listen on the host 192.168.122.1 on port 12345, I check with my guest machine with netcat :
nc -vz 192.168.122.1 12345
I get the following answer :
Warning: forward host lookup failed for hostname: h_errno 1101: HOST_NOT_FOUND
hostname [192.168.122.1] 12345 (?): TIMEOUT
And I get the same answer on any interface.
But if I do the same on the external network gateway 192.168.0.1, I get :
gateway.lan [192.168.0.1] 12345 (?) open
How can I fix it ?