Error 3194 means that your device is ineligible for the versiion you’re trying to flash. Try and download the IPSW for 5.0.2 and jailbreak it and hope that Apple is still signing it.
You need to double check your HOSTS file and ensure you don’t have anything redirecting gs.apple.com if so you need to remove it.