Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an IIS server running a website with HTTPS access on the server already.

We need this server to provide remote desktop gateway services to other servers on the network.

Today I installed Remote Desktop Services. I used the same certificate used for the website. After I finished the installation, I got an error from IIS that somebody else is using port 443 (SSL) and the website cannot use the binding anymore.

Of course, that was the Remote Desktop Gateway using the binding.

Is it possible to use both services on the same machine? (one IP, one interface only) as I understand Remote Desktop Gateway must use port 443?


share|improve this question
Are you absolutely certain you want to do this? Let's say your website gets hacked, the attacker now has access to a machine which can access the rest of your machines. – devicenull Mar 25 '12 at 22:47
up vote 1 down vote accepted

What I did eventually is encrypt and tunnel the RDP connections on both servers according to this guide (using Putty and Copssh). We log in to the internal machines by RDPing into them from within the Webserver itself (We understand the risk here).

I also wrote a batch file to automate the login procedure. The script will terminate automatically upon logging off from the internal machine. (note: the ping command delays the remote desktop menu, thus giving the user enough time to enter the SSH password):

start /b putty <user-account>@<ip-address> -L <local-ssh-port>:<ip-address>:3389
ping -n 1 -w 12500 > nul
mstsc /v:localhost:<local-ssh-port> /f
taskkill /f /im putty.exe
share|improve this answer

Yes it is.. But it has to be part of your existing website as you discovered that you can't bind two different sites to the same host name. It requires a bit of setup, but yes, you can accomplish this using the same DNS name and/or IP.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.