If your computer has joined the correct Wi-Fi network but you are still unable to
get online, you should check your TCP/IP settings in the Network pane of the System
Preferences.
1. Choose System Preferences from the Apple menu.
2. Choose Network from the View menu.
3. Select Wi-Fi, then click the Advanced button in the lower-left hand corner of the
screen.
4. Select the TCP/IP tab from the top of the screen.
If no IPv4 address appears, or if the IP address starts with "169.254.xxx.xxx",
click "Renew DHCP Lease". Consult with your network administrator to determine the
correct TCP/IP settings for your Wi-Fi network. Without the correct TCP/IP settings, your
computer will not be able to get online. If your TCP/IP settings appear to be correct, and
your computer still cannot access the Internet, check the DNS tab. See below for this
tab. DNS is an Internet service that translates IP addresses into URLs and vice-versa. A
correct DNS configuration allows your computer to connect to www.apple.com without
having to enter the specific IP address of the Apple servers.
https://support.apple.com/en-us/HT202222
B) The wifi wont connect on my PC
Let Windows try to help you fix the problem. Try running the Network
troubleshooter to see if it can diagnose and fix the problem. In Windows 8.1, select the
Start button, start typing Network problems, and then select Identify and repair network
problems in the list. In Windows 7, open the Network troubleshooter by right-clicking the
network icon in the notification area and then selecting Troubleshoot problems.
Resetting the modem and your router can help fix the network connection in
some cases. This helps create a new connection to your Internet service provider (ISP).
When you do this, everyone that is connected to your Wi-Fi network will be temporarily
disconnected.
Unplug the power cable for the router from the wall.
Unplug the power cable for the modem from the wall.
Some modems have a backup battery. So if you unplug the modem and lights stay on,
remove the battery from the modem.
Wait at least 30 seconds or so.
If you had to remove the battery from the modem, put it back in.
Plug the modem back into the wall. The lights on the modem will blink. Wait for
them to stop blinking.
Plug your router back into the wall.
Wait a few minutes for the modem and router to fully power on. You can usually
tell when theyre ready by looking at the status lights on the two devices.
On your PC, try to connect to the Wi-Fi network again.
https://support.microsoft.com/en-us/help/15287/windows-why-can-not-get-connected