Hi,
If you restore to factory settings, all of your configurations will be lost,including your IP and server settings.So the device will not communicate to your server after that.
You can do a soft reset by sending the command cpureset through sms or GPRS.
If you have the FOTA software and Modem (Not configurator software) , you can access the device and change the configurations.
Thanks
Naveen