Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have gone and:

  1. forgot the password to my remote windows server (with weeks worth of work backed up on it)
  2. changed the IP address of the remote windows server

Now the only way possible that I can login to my server via RDP is to redirect one IP to another IP address.

I have tried to do this in the hosts file like this:

ip_new ip_old

but that didn't work because the hosts file is only for domains...

Anybody have an idea on how to redirect one IP address to another without too much trouble?

share|improve this question
    
I'm not sure what you're trying to do here. If the remoe server's IP address has changed, then you need to RDP to the new IP address or it simply won't get the connection. But since you've forgotten the password, once RDP establishes the connection, you're stuck anyway as you won't be able to login. –  StarNamer Jul 27 '12 at 19:37

1 Answer 1

You need a program in the middle that listens to traffic on a given IP address+port (i.e. socket) and copies it to a different IP address+port. You may be able to do it with weird routing rules but your internet access may suffer as a result.

A good program for this purpose on Windows is Trivial Proxy. The port in question is 3389.

Please note that:

  1. you can't redirect traffic after it leaves your computer, unless you control an intermediate device leading to it (such as the router in front of the server)
  2. if you are behind a NAT router Trivial Proxy won't work (the destination computer won't be able to connect back to you)

Also there is still the matter of your password. Good luck.

share|improve this answer

Your Answer

 
discard

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.