I have set local ubuntu 16.04 server yesterday. I configurated static IP and everything was good. I was able to connect to the server. Today I travelled to city, where i stydy. The server couldnt work becouse of diffrent router settings.
For the last few hours im trying to make it work again. My base system is Windows 10, then I have linux mint 17.3 on virtual machine. On linux i have ubuntu server. In both cases im using virtualbox to host VM's.
Output of ipconfig in Windows:
IPv4 Address 192.168.1.10 Subnet Mask 255.255.255.0 Default Gateway 192.168.1.1
I have two network adapters connected to ubuntu: Host-only and NAT.Host-only settings
Configuration of /etc/network/interfaces
auto lo iface lo inet loopback auto enp0s3 address 192.168.1.20 netmask 255.255.255.0 network 192.168.1.1 broadcast 192.168.1.255 auto enp0s8 iface enp0s8 inet dhcp
Ifconfig for enp0s3 show me:
inet addr: 192.168.1.20
Ubuntu server has internet connection(i can ping google.com) but i cant connect to local server. Would appreciate any kind of help.