I have an Ubuntu 20.04 VM (VirtualBox) on a Windows 11 host.
The network is attached by NAT.
I have port forwarding in VirtualBox as follows:
Name | Protocol | Host IP | Host Port | Guest IP | Guest Port
SSH | TCP | 127.0.0.1 | 2222 | 10.0.2.10 | 22
So now I can SSH to the VM from the Windows host via PuTTY from 127.0.0.1:2222
without any issues.
The IP of that host on my LAN is 192.168.10.15
. So I try to ssh to that VM from another Windows PC via 192.168.10.15:2222
but I get Connection timed out
.
So I thought perhaps the Windows host is blocking inbound traffic, so I opened all ports just in case (for testing) - connection still timed out.
So I added a port forwarding rule in my router on the IP 192.168.10.15
:
Name: SSH
External Port Start: 2200
External Port End: 2200
Protocol: TCP
Internal Port Start: 2222
Internal Port End: 2222
IPv4: 192.168.10.15
then I tried to SSH via 192.168.10.15:2200
, but still nothing.
I even tried all sorts of combinations:
192.168.10.15:2222
, 192.168.10.15:22
, but all timed out.
I even added all ports to outbound rules on the Windows PC that tries to SSH to the other PC, still nothing
What is the problem?