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 hope it's simple. I'm tied to the following situation:

  1. A tight VPN that allows me to access only port 22 of my server, and has to be via IP address (no DNS)

  2. My happy PuTTY tunnels that gives me access to all other ports in that server. For this example let's connect to oracle on 1521. So my PuTTY has: L1521 to 127.0.0.1:1521. Grand, toad wroks.

  3. An annoying Windows XP application which I really need and there's no other option. It connects via port 57001, so I have another PuTTY map and it works fine.

When does trouble happen:

This application connects to the server and fetches some other connection data. Actually, it fetches the database connection for itself, something like 10.222.12.13:1521. But as I said, that server will only accept on port 22, thus my PuTTY tunnels.

It's worth mentioning that I cannot change the connection data it fetches.

I reckon if I could tell my Windows installation "hey when something asks you 10.222.12.13 send it to 127.0.0.1 instead", would do it. I just don't know how. The hosts file does it for host names, what about concrete IP addresses?

share|improve this question
add comment

2 Answers 2

Have you tried adding a route to 10.222.12.13 via the command prompt?

Here are the instructions

share|improve this answer
add comment

The hosts file does it for host names, what about concrete IPs addresses?

It works for concrete IP addresses too.

share|improve this answer
    
meh.. no.. it didn't work :( –  flpgdt Aug 12 '10 at 14:56
    
Try the different troubleshooting steps suggested in superuser.com/questions/175183/hosts-file-not-working-correctly/… –  Tom Wijsman Aug 13 '10 at 0:43
add comment

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.