Changed the IP to connect to and edited the Log function to handle reading and writing if not all of the data has been received for one entry yet.