Socket port bugfix