hostname should be tested against host, + port strict equality