How to fix error number 3195 on itunes?

I have installed ios7 beta 3 without an udid account. Unfortunately the beta version got expired and i got my iphone 4 locked. So i decided to restore it but an error pops in everytime i try to restore.itunes says it 3195 error. So please anyone help me…

This may be because out-of-date or incorrectly configured security or firewall software is interfering, an old version of iTunes is installed, an entry in your hosts file redirecting requests to gs.apple.com (see error 1004 above), or because of your Internet proxy settings. If you are using a proxy, try without using one or with a known-good network.

Easy, click on restore and update there you go