fuck both of them, no you have not been hacked
Two ways that you can fix this is by unplugging your router for 15 seconds which allows your Ip adress to reset itself and often will fix it right away.
The other option is to go to the top right click "Open network preferences"
-click the thing in the middle top that says "location and now make a new location by clicking the "+" sign at the bottom of the menu that will pop up
-Type in whatever location name that you want
-Click "done" and now click apply
-Reopen location and now click on the old original name and press the minus sign that should right besides the plus sign. This will have deleted the old wireless location in your computer and started the new location.
-Click "done" and now click "apply" once more.
-Close everything and now try to restart your computer and everything should work
Also if your wireless password is 10 numbers long (often such as a phone number) for some reason it doesn't mix with the coding of certain gens of macs and can fuck up so you might want to get it changed also if this is the case.
Hope this helps