65

I have an application that communicates via SSL, however, Port 443 is already in use by an IIS instance on that same server. Can I use another port other than 443 for SSL communication?

Hennes
  • 65,804
  • 7
  • 115
  • 169
dandaman12
  • 937
  • 1
  • 6
  • 9

3 Answers3

80

SSL is in no way tied to a single port value; in fact, as a protocol, it can be used over any transport medium, as long as that medium provides a bidirectional stream for arbitrary bytes.

In a Web context, you can use any port other than 443, provided that you specify it in the URL: https://www.example.com:7342/foobar.html

Note that there are some networks (especially some free WiFi access points) that don't allow traffic over other ports than 443 or 80; which means that using a port other than 443, though perfectly standard and supported, may imply some practical usage restrictions.

Tom Leek
  • 1,351
8

You can use (nearly) every port, which is not used, for SSL communication. The question is: Did you mean that someone enters https://... and your service is not on port 443? Than it is not directly possible. Modern browsers use the prefix https:// to connect to serveraddress:443 (if no port is present). Similar to http:// which connects to serveraddress:80.

smottt
  • 103