I am not able to connect to Linux (CentOS), installed in virtualbox, using ssh in same LAN.
The reason is difference in LAN IP range.
The virtual box Linux (CentOS) LAN IP is 10.42.0.x
and the system where virtual box is installed (ubuntu), LAN IP is 192.168.0.x
Now I am not able to connect to the CentOS from other systems of same LAN because when I try to connect, it says
ssh: connect to host 10.42.0.x port 22: No route to host
I can connect ubuntu (Parent system) from other systems of LAN.
I am facing same problem in one of the system which is connected to the internet using hotspot. It gets same IP range i.e. 10.42.0.x and it can't be connected from other system of same LAN.