To those still having problems, here's what I did:
I eventually gave up on the command prompt commands, as none would work, regedit settings defaulted back and nothing changed.
I instead logged into my router and set up a static IP for my PC. Provided you have, or can acquire your router login (user and password), this is usually a easy task. I have a Tilgin router, and as I didn't want to contact my ISP, and no password information
was available online, I eventually guessed it to be username: admin and password: admin (this particular router is case sensitive)
Press windows + R and type "cmd". In command prompt, type: ipconfig /all
A big list of information should now appear.
Try to find a title called "Wireless LAN adapter Wi-FI" (may be different for you)
In the list below Wi-Fi, take note of the "Physical Address" (MAC-address).
If you're in the same situation as me, the default gateway is probably empty. I checked this on my iphone and it was 192.168.80.1
This is the router IP which you will need to connect to your router. Typically this is 192.168.0.1 or 10.0.0.1
As all routers are different, I can't go into detail on how to set up, other than that you have to find a static IP option in the router, portforward.com can help you with this: http://portforward.com/networking/staticip.htm
I'm sorry I can't help you further, but I had to share it, as it solved my problem