Ok everyone ive tried everything from changing dns setting to logging into my router and nothing... but
This fix worked perfectly.
Step 1- Log into PSN until you get the error code. Press O to go back to log in screen. Then sign in again, wait a couple seconds then cancel. Keep doing this till you get a differant error code...its has a B or something in it. Then press 0 and sign in one more time but dont cancel it and that should work! Good luck.