Update port to 4000 and socket client connection url. Fixed some bugs