correctly set port