henno
Posts: 14
Joined: Fri Jan 04, 2013 5:54 pm

PuTTY not working wirelessly

Tue Oct 14, 2014 11:12 am

Greetings Raspblings,
I've recently been trying to use my Raspberry Pi (Raspbian) from my laptop (Windows 8.1) but I can't seem to get it to work if I just plug my Pi into my router with an Ethernet cable and then try to connect over the WiFi network with my laptop. I've set the Pi's IP address in the cmdline.txt file and checked that it is correct (my computer's IP is determined automatically), but whenever I try to log onto my Pi I get a popup from PuTTY saying

Code: Select all

Network Error: No route to host
(the same as if my Pi wasn't connected at all). If I plug my Pi into my laptop directly however, this problem is solved but this seems to prevent my Pi from being able to use the Internet. Can anyone help me with either of these problems?
Thanks,
henno
P.s. I hope this is the right forum and sorry if I haven't included enough information (I'm kind of a computer noob)!

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 11:23 am

what is the IP and netmask and gateway of
your router
your RPi
your laptop
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 11:28 am

Do you know for certain that your home router will allow connection between devices in this way? Have you tried allowing the router to assign the address to the RPi via DHCP?

For connectivity via the laptop, investigate network sharing on windows - not enabled by default.

PuTty is certainly capable of being used over WiFi.

henno
Posts: 14
Joined: Fri Jan 04, 2013 5:54 pm

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 1:03 pm

Thanks for the fast replies! My Pi has the IP 169.254.24.24, mask 255.255.0.0 and Gateway 0.0.0.0 (while connected to my laptop via Ethernet, I can't check what is is while connected to the router at the moment unfortunately), my computer has the IP 192.168.1.36, the mask 255.255.255.0 and the default gateway 192.168.1.1 and I'm not sure about the router - how can I find that out?
If I set the Ethernet settings to "Allow other network users to connect through this computer's Internet connection", my computer somehow loses its own Internet connection through WiFi and if I do the same for the WiFi instead of Ethernet, PuTTY says:

Code: Select all

Network error: Network is unreachable
As for allowing the router to assign the address to the RPi via DHCP, I'm afraid to say that I don't know how to do that (I have pretty much no experience at all with this kind of thing). Also, I can't make any changes to the router that would affect other users as it's shared by my family... :(
Thanks again,
henno

henno
Posts: 14
Joined: Fri Jan 04, 2013 5:54 pm

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 1:17 pm

Pi addresses all appear to be the same when connected to the router as when connected to the laptop. Getting back to B.Goode, I'm not sure that the router allows this kind of connection but I can't change the settings because, as I said before, it's my family's router. That's probably the problem though, considering that the gateway is different on both devices, unless it's that the router gives different addresses to Ethernet and WLAN - is this possible?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 1:24 pm

Have you defined the network as "trusted" in Windows?

Get the password for your home router's admin pages, you should be able to tweak settings in there without doing any damage.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

henno
Posts: 14
Joined: Fri Jan 04, 2013 5:54 pm

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 3:41 pm

It may have been useful to mention this: We have a router connected to an Apple Time Capsule that runs our network and I'm connected to an AirPort Express working as a relay. Does this make a difference? I tried connecting my RPi to the router and the time capsule but the IPs didn't change.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: PuTTY not working wirelessly

Tue Oct 14, 2014 4:09 pm

If two machines are on the same subnet (router address, netmask, ip range) then it doesn't matter how the physical connections are made.

Look at
ifconfig -a
route -n
on your RPi

Look at
ipconfig /all
route print
on Windows

Sorry, I don't know the commands for iOS.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

henno
Posts: 14
Joined: Fri Jan 04, 2013 5:54 pm

Re: PuTTY not working wirelessly

Fri Oct 17, 2014 4:03 pm

Sorry for the delay - I've been busy preparing for a piano concert! As I said before, the IPs have the same first two parts, but the mask and gateway don't appear to be the same. Any way to fix this?
Thanks,
henno

Return to “Troubleshooting”