Logs 9-digit long unique numbers to a file from a socket. Listens to port 4000 by default.