Start by turning airplane mode on for a few seconds, then turning it off again. If that doesn't solve the problem, try forgetting and re-joining the Wi-Fi network or restarting your phone. Another potential cause is your device name, which can be fixed by opening Settings > About phone > Device name and assigning it a new name.