-1 means the default port for the scheme. Unfortunately, the equals implementation for HttpHost compares the port values exactly, so 443 is different from -1.