If your Raspberry Pi won't connect to your WiFi network, or you're seeing some odd connection issues, we've found that it's usually caused by your internet router or router settings (the WiFi chip on the Raspberry Pi very rarely fails).
Here are some common fixes and troubleshooting suggestions:
- 2GHz vs 5GHz - If you're seeing connection drop-outs or poor reception, it might be because your router is connecting via the 5GHz band. Whilst 5GHz offers greater speeds over 2.4GHz, it can't travel as far. Try disabling the 5GHz band in your router - if that clears up the problem then you then know it's a WiFi band issue.
- Disable WiFi 'smart' switching - Some newer routers feature two WiFi bands - 2.4GHz and 5GHz - and many will automatically switch your device's connection between these bands in an attempt to help the connection/speed. This can sometimes cause issues, so when troubleshooting WiFi issues it can be useful to log in to your router and disable any smart-switching features (or disable the 5GHz band altogether).
- Setting a static IP address for your Pi- Some 'smart' routers/hubs seem to have an issue if multiple Raspberry Pis are on the same network. Log in to your router and set each one with a static IP address to see if that resolves your issue.
- Change hostnames - If you're running multiple Raspberry Pis, you'll see that they all show up on your network as the name 'Raspberry Pi'. Whilst this is usually fine, it's a good idea to give each one a unique name to avoid confusion when troubleshooting network issues. To do this, open a terminal window and enter 'sudo raspi-config'. Then select 'Network Options' and then 'Hostname' to change the name that will show on your network.