So, what I am trying to do is that I have my RPi3 and PC connected to the same LAN, and by using SSH, I can connect to the RPi3. And important thing to note is that I can connect only one of the devices (PC or RPi3) with an ethernet, the other device has to be connected via WiFi. The actions I describe below have my pc connected to the LAN via ethernet and the RPi3 with WiFi (although I tried it even the other way around).
So here I what I tried:
- Downloaded and installed the latest raspbian.
- Connect my RPi3 on a screen, keyboard, mouse and power supply.
- Open bash and open raspi-config file
- I enebale SSH, disable the graphical interface and connect to my WiFi
- Then I type "sudo nano /etc/dhcpcd.conf" and add the following text in the top (to have a static IP):
interface wlan0 static address 192.168.1.100 static netmask 255.255.255.0 static gateway 192.168.1.1
- Then I reboot my RPi3
- It now open in the bash. I type "ifconfig" and there is shows that my wlan0 IP is 192.168.1.100
- I shut down my RPi3, take out the HDMI, mouse and keybaord, and power it up again.
- Then from my PC, having already installed, on my windows 10, PuTTY, I give the IP address, and wait. After a bit I get this message:
I have tried to connect the RPi3 via ethernet (canging the wlan0 in the dhcpcd.conf file) and use the wifi on my pc, but got the same problem. Any tutorial I have seen, video or question on this site, has not the same exact problem. At least from what I have found, they have some problems after connecting. But I can't even connect, at the first place
Is this because i am using WiFi or am I missing something else?
P.S. I will not list all the tutorials I have seen, but here a few of them (of which some of the are with older Rasbian versions, I know):