Can't ping from Windows to Linux server
Olivia Zamora
Basically, I can ping from my Linux server to Windows (when I disable the firewall), but I can't ping from Windows to Linux, whether I disable the ufw-firewall or not. It just doesn't reach it. My Ubuntu uses a Network Bridged Adapter, as well.
Linux server's IP:
10.88.77.111Windows IP (Wi-Fi):
192.168.0.110Because of this, I think, I cannot connect to the linux server using SSH as well. Firewall can't be the issue, because I disabled both of them.
EDIT:
I've said this in the comment section below, but might as well repeat it here. No, SSH does not work. It gives the famous error: "Network error: Connection timed out", and I still haven't been able to fix that problem.
Second EDIT:
Yes, my Ubuntu host is on a Virtual Machine (VirtualBox). I'm just trying to connect my Ubuntu server (which is on a VM), to my Windows host, through SSH. But that doesn't work. Since that didn't work, I tried to ping the two, and one of two was successful, which is strange. If it's the Network Bridge Adapter which is causing a problem, what do you suggest I take? And also, I HAVE done SSH before, and it worked. Only now, after a couple of months, I'm trying to do SSH again, and now it's failing, for some weird reason. Should I try and change the IP of my Ubuntu?
Third EDIT:
It's an Ubuntu Server. Here are the two relevant config-files of my server:
/etc/network/interfaces
/etc/hosts
131 Answer
We need a little more information on your network setup to answer your question fully, but I believe I know at least what is causing the issue.
Assuming:
1) Both the Windows and Linux computers are supposed to be on the same local network.
2) The Linux server is not a virtual machine.
3) You are using bridged connections on your Windows machine to share its wireless connection to the Linux server through ethernet. (You bridged Wireless and Ethernet in Windows to get a connection to Linux.)
Then the problem is likely your network bridge. Your router assigned the local IP 192.168.0.110 to the Windows machine, and this is a common subnet for local networks.
The issue is that your Linux server has the IP of 10.88.77.111, which is an entirely different subnet. This means it likely did not receive an address from your router properly, and because of this Windows cannot ping the Linux server.
I would remove the network bridge, check all of your settings, and try to create it again. Did you change any settings from default when creating the bridge, such as setting static addresses under the "Internet Protocol Version 4 (TCP/IPv4)" properties, for example?
Edit:
Since your Linux server is a virtual machine, the above information does not apply to your setup.
When you originally setup the virtual machine, did you change any of the network settings?
Edit #2:
Wait a second, that address you have your server set to looks very similar to the address VirtualBox assigns when the network settings are in NAT mode. Are you sure it is in bridged mode, like this for example:
If it is in bridged mode, and not NAT, then set the /etc/network/interfaces file to automatically retrieve an IP address. It will likely look more like the Windows one. If the automatic address it gives you works, then configure the static IP address to be what it gave you automatically.
8