created project, initial the TCP and server function