Changed the TCP Port to 8999 and removed hard-coding the opening of the file