Server created and socket logic added