Weird.. My computer is working now.
I had plugged in my laptop into my modem and it hadn't worked so I tried cloning my mac address from my desktop computer. I had already reset the modem and the router and it hadn't worked so finally I decided to unplug both things and restart them then it worked.