Index: /trunk/wp-includes/class-IXR.php
===================================================================
--- /trunk/wp-includes/class-IXR.php	(revision 123057)
+++ /trunk/wp-includes/class-IXR.php	(revision 123058)
@@ -709,5 +709,16 @@
             $bits = parse_url($server);
             $this->server = $bits['host'];
-            $this->port = isset($bits['port']) ? $bits['port'] : 80;
+
+            // If the port is in the url, use that port
+            // If no port in the URL use the default port for the given scheme (http vs https)
+            // If no scheme and no port, just use port 80
+            if (isset($bits['port'])) {
+              $this->port = $bits['port'];
+            } else if (isset($bits['scheme'])) {
+              $this->port = $bits['scheme'] == 'https' ? 443 : 80;
+            } else {
+              $this->port = 80;
+            }
+
             $this->path = isset($bits['path']) ? $bits['path'] : '/';
 
