Open server socket in corect order