I have a windows 7 laptop, and a raspberry pi running linux(raspbian). I have configured a wifi dongle on raspberry pi, and it's connecting to a wifi network. But now I want to connect my Windows machine to raspberry pi through a direct ethernet cable using ssh without going through wifi network. I have tried several ways, but none of them worked.

I tried to set a static ip address for my raspberry pi, and then configure windows machine within the same subnetwork. It worked well, but my raspberry pi cannot connect to wifi network . The wifi network is using dhcp, and I guess there is a conflict.

Basically, I am looking for a solution to make the raspberry pi working good with the wifi network, and at the same time my windows machine can ssh to it using a direct ethernet cable. Can anyone help me?


  • 1
    set static ip for both. . can u ping to each other now? Jan 7, 2014 at 14:03
  • are the ethernet ip addresses on the same subnet as the wifi connections? IIRC they shouldn't be.
    – Journeyman Geek
    Jan 7, 2014 at 14:04
  • The ethernet ip addresses is the same subnet as wifi. let me change it and see what happens
    – Jiechao Li
    Jan 7, 2014 at 14:19
  • i cannot ping each other.
    – Jiechao Li
    Jan 7, 2014 at 14:19
  • you need to set routing tables o both pcs, and enable IPv4 forwarding on windows machine Jan 7, 2014 at 15:44


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.