Prints ports correctly