implemented socket to listen to port 10001