Can't connect to Yun over local Wifi network

Hi - I've run out of ideas, so any help gratefully received.

I've got my Yun updated and up and running, connected to my local Wifi and via the terminal (over USB) I can see it is connected (iwconfig) and I can ping other devices on my network (and the local IP) from the Yun. Authentication is WPA2-PSK.

What I cannot do is ping or connect to the Yun from another device using it's local IP (192.168.143.1) or arduino.local

I've tried this from two different PCs - Win7 and Win10, both have Bonjour installed, I've reset the wifi and reconfigured it (via AP mode/192.168.240.1), reconnected to my access point and the same thing.

[Edit: one quick update: plugging it into wired ethernet I can ping/connect to it. so this is a Wifi only issue]

I've scoured the internet for people with the same issue and found nothing.

Any suggestions??

Are you sure the WiFi is really connected? Are you sure you're using the right IP address (iwconfig doesn't give the actual address.)

As long as you are able to log in, try running the [b]pretty-wifi-info.lua[/b] command and posting the output here. It will be helpful when a WiFi/networking guru comes along and sees this post.

Yes it's connected to wifi. "I can ping other devices on my network (and the local IP) from the Yun"

The device can connect outbound over wifi (e.g. the Web Client samples work over wifi, or I can use the USB serial terminal to connect to connect to the OpenWrt console ping other machines on the same Wifi network). I can also see the DHCP lease on my wifi router.

What I cannot do is ping, SSH, or browse (port 80) TO the Yun from other devices on the network via Wifi. When I connect via CAT6 I can do all of those things so I think that rules out firewall rules on my other devices or the router.

Output for pretty-wifi-info.lua:

Current WiFi configuration
SSID: ganglyo4
Mode: Client
Signal: 51%
Encryption method: WPA2 PSK (NONE)
Interface name: wlan0
Active for: 0 minutes
IP address: 192.168.1.143/255.255.255.0
MAC address: 90:A2:DA:F3:19:0F
RX/TX: 1/1 KBs

Any suggestions?

netgio:
Active for: 0 minutes

This is tellng me that your connection is not stable.

Encryption method: WPA2 PSK (NONE)

I find the "NONE" here curious. I'm going to guess that you have something wrong with your WiFi security settings? You're only partially connected, and it hasn't finished the association/authentication process? Maybe double-check the security parameters and re-enter them?

Maybe Jesse or another networking guru will step up with ideas. I've never seen it where it has an IP address, but the active time is zero and the key type is NONE.

@netgio,
the reason you cannon ping the Yun is because very likely you have a routing issue. This could be because of the router, or because of windows.

My bet is you have a firewall on your windows machine, that is blocking the ping. It is likely just dropping the packet, so you won't get a error message.

Another, less likely possibility, is that the machine does NOT allow pinging of the local network.

In short, start with windows, and work your way out.

FWIW ping

  • localhost (127.0.0.1)
  • your interface IP (your wifi IP)
  • your router

Let's know how it goes.
Jesse

Thanks for the suggestions.

This morning I plugged in and it started working - I have changed nothing on the yun. I did reboot my router yesterday because my printer was misbehaving...I'll bet that was the trigger. It's a bog standard BT broadband router, nothing funky and every other device in the house has been connecting, reconnecting and working fine.

For completeness (and others to reference)

Active for: 0 minutes

This is a red herring - I had just rebooted the Yun

Encryption method: WPA2 PSK (NONE)

Interesting status, not sure what NONE means, but the status remains the same now it's working and other examples posted on this forum don't suggest this is out of the ordinary.

Obviously I can't validate ping results now it's working, but I'm sure the Yun was able to ping the gateway, other resources (e.g. my PC) and it's loopback. My PC(s) were also able to ping other IPs in the same subnet and the gateway - just NOT the Yun.

Moral of the story - reboot EVERYTHING!

Over to my friends in the IT Crowd... https://www.youtube.com/watch?v=nn2FB1P_Mn8

Cheers!