Fixed array out of bounds exception
Changed port number to be compatible with lab