Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You’ve provided very limited information to go with, but a lot of the times this happens because of incompatible routers. To begin with, try to restart your router and see if it gets fixed.
 
  • Like
Reactions: RayB4
If @akash.nu advce doesn’t solve the problem, try this: Select your Wifi in the Settings, open the information panel (click the blue circled i) and deselect “Private Address“. This might solve the problem.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.