I have two Pi's, one is Pi 3 Model B and the other is Pi 2 model B. I have connected the Pi's together via Ethernet. The Pi's have been assigned static IP address (modified the dhcpcd.conf file):

  • Pi 3 (eth0 ip) -->
  • Pi 2 (eth0 ip) -->

I am able to SSH from Pi 3 to Pi 2 and vice versa over the Ethernet connection.

Now, I start a Wi-Fi hotspot on Windows laptop and connect Pi 3 to it. The wlan0 IP assigned to Pi 3 is
(So, Pi 3 Now has two IP's eth0 and wlan0).

Now there are two cases:

  • Disconnect the Ethernet connection between the Pi's, then SSH from windows (PuTTY) to Pi 3 over Wi-Fi. This works!

  • Keeping the Ethernet connected between the two Pi's, then trying to SSH from windows (PuTTY) to Pi 3 over Wi-Fi doesn't work. PuTTY throws "Connection timed out" error.

I would like to SSH from windows into Pi 3 over Wi-Fi, then through this PuTTY session SSH into Pi 2 over Ethernet. Could please someone help me how to do it.

  • How exactly you defined eth0 and wlan0 in P3's dhcpcd.conf? What is your netmask on the router or on your P3 configuration?
    – hcheung
    Mar 15, 2017 at 12:30
  • @hcheung As per this link. I added these lines to the end of dhcpcd.conf file: interface eth0, static ip_address=, static routers=, static domain_name_servers=
    – x.projekt
    Mar 15, 2017 at 13:05
  • I have a similar configuration as your P3 and I can use both of eth0 and/or wlan0.
    – hcheung
    Mar 15, 2017 at 13:11
  • "Connection timed out" error (Point 2 of my question). I don't know why this is happening. Connecting the Ethernet seems to be conflicting with the Wi-Fi connection.
    – x.projekt
    Mar 15, 2017 at 13:22
  • Noticed that you only have eth0 configuration in dhcpcd.conf, but no wlan0? Here is how I setup mines interface eth0 static ip_address= interface wlan0 static ip_address= static routers= static domain_name_servers= Why is your ip is 192.168.137.xxx while your router is is your netmask set on your router set as
    – hcheung
    Mar 15, 2017 at 13:26

1 Answer 1


The configuration in which two separate interfaces on a single machine are configured in the same network is not correct.

The situation you described is expected as the return packets from the Pi to the Windows machine might be sent through the Ethernet once it's connected (and, of course, not reach the destination).

Use different IP network on the Ethernet and WiFi interfaces.

It might be as easy as changing the network mask to split the into two networks, or not. It depends on your whole network configuration.

  • how do you know it is two networks?
    – hcheung
    Mar 15, 2017 at 12:30
  • @hcheung I have no clue what you are asking about.
    – techraf
    Mar 15, 2017 at 12:38
  • sorry, my misreading of your message.
    – hcheung
    Mar 15, 2017 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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