Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have Windows installed on my laptop, connected to the router wirelessly with IP 192.168.1.5. My desktop is running Linux, connected to the same router (wired) with IP 192.168.1.2. When I do a ping from Windows to Linux, I get a response, but it doesn't work in the other direction. What could be the problem?

share|improve this question

migrated from unix.stackexchange.com Aug 2 '13 at 15:30

This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems..

1  
answers.microsoft.com/en-us/windows/forum/windows_7-networking/… this is pretty much windows administration question :) –  Bob Aug 2 '13 at 15:02
add comment

3 Answers

up vote 4 down vote accepted

This sounds like your Windows firewall is blocking ICMP packets is what the command ping is using to solicit responses from other computers on the network.

I would try to ping the WI-FI router from both systems to confirm that outbound is working against a 3rd machine (which it likely is, since you're getting IP addresses from the router).

Your router is likely to have the IP address 192.168.1.1 so I'd try pinging that.

From windows:

$ ping 192.168.1.1

From Linux:

$ ping 192.168.1.1

If these work then it's highly likely that the Windows firewall is to blame here for blocking your ping attempts.

share|improve this answer
    
Thanks for the response. Ya you are right, both machines allow the ping to the router. But I also tried setting up an apache server on windows and tried to access it via http from linux, that did not work either. My firewall in windows is also disabled. Is there any other place I should be looking into? –  Ajay Nair Aug 2 '13 at 15:21
    
Was the Apache server configured to listen on the external IP address or localhost? httpd.apache.org/docs/2.0/bind.html. You can see what IP it's listening on with the netstat -an|grep ":80". –  slm Aug 3 '13 at 0:09
add comment

check the windows firewall, that it allows ICMP

share|improve this answer
add comment

Does your linux distro have NETBIOS? when you ping another pc by name in your network, often it is not because the name is in the DNS server but instead broadcast by the other PC through NETBIOS.

For instance on most android phones you can not ping a windows machine by name for this reason unless the host name was added to the DNS server.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.