the php script which updates the IP of the devices

HTTPPOST calls this script on sending a message.