skotl
Forum Supporter
- Messages
- 10,160
- Location
- Edinburgh, UK
Pretty much all of the info above is correct.
Devices should be able to see each other on the same network, and the gateway is the device / router that will handle traffic to everything on other networks. So 192.168.0.10 and 192.168.0.11 for IP addresses for each is fine, both with a subnet mask of 255.255.255.0 and default gateway of 192.168.0.1
Crossover cable isn't generally needed as most cards are auto-sensing.
I'd be starting to wonder about the firewall on the pi (if there is such a thing) rather than the Windows device. Remember that pinging is a different protocol - SSH, HTTP etc are TCP/IP commands whereas ping is ICMP. It may be that you don't have ICMP being allowed on either or both of the devices.
Dumb question - can you ping each machine from itself? So if the laptop is 192.168.0.10 can it ping 192.168.0.10, and can the pi ping 192.168.0.11? That doesn't prove the cabling but it does prove that the IP addresses are bound correctly, and that ICMP is working.
Next question - is sshd definitely running on the port you expect it to be? Run "netstat -na" and verify that port 22 is listed. sshd might be running on port 2222, or a different port entirely - run "netstat -nap" to check which processes are listening to which ports.
Next, verify that ssh is receiving connections, from the raspberry pi: "ssh 192.168.0.11 -p 22" (replacing the IP address and port / -p with whatever port is reported via netstat)
Devices should be able to see each other on the same network, and the gateway is the device / router that will handle traffic to everything on other networks. So 192.168.0.10 and 192.168.0.11 for IP addresses for each is fine, both with a subnet mask of 255.255.255.0 and default gateway of 192.168.0.1
Crossover cable isn't generally needed as most cards are auto-sensing.
I'd be starting to wonder about the firewall on the pi (if there is such a thing) rather than the Windows device. Remember that pinging is a different protocol - SSH, HTTP etc are TCP/IP commands whereas ping is ICMP. It may be that you don't have ICMP being allowed on either or both of the devices.
Dumb question - can you ping each machine from itself? So if the laptop is 192.168.0.10 can it ping 192.168.0.10, and can the pi ping 192.168.0.11? That doesn't prove the cabling but it does prove that the IP addresses are bound correctly, and that ICMP is working.
Next question - is sshd definitely running on the port you expect it to be? Run "netstat -na" and verify that port 22 is listed. sshd might be running on port 2222, or a different port entirely - run "netstat -nap" to check which processes are listening to which ports.
Next, verify that ssh is receiving connections, from the raspberry pi: "ssh 192.168.0.11 -p 22" (replacing the IP address and port / -p with whatever port is reported via netstat)