Fixed order of parameters passed to `explode` when a remote host defines a custom port.
Merge pull request #2410 from WMeldon/port-fix-remote

Fixed order of parameters passed to `explode` when a remote host defines a custom port.