Fix: port comparison is flawed in IE when using host