How to reroute external IP address to localhost?

0

I have a software that I no longer have access to it's source code that is connecting to a server on a certain IP. I want to be able to mimic the same server's functionality and route the IP address to localhost.

However, there is a problem. The software detects Microsoft Loopback Adapters and deletes them upon start-up. It also detects the use of the CMD command netsh int ip add addr 1 [ip], so I can't use that as well.

Is there an alternative way to route the IP to localhost?

Verlicious

Posted 2015-03-12T09:39:33.820

Reputation: 1

Have you tried modifying the hosts file? – DavidPostill – 2015-03-12T12:36:54.583

@DavidPostill He said he wants to route an IP. The hosts file only deals with rerouting or translating a domain. i'm sure the hosts file could translate a domain to an ip, but I really don't think it'd do an ip to an ip. – barlop – 2015-03-12T13:01:10.927

possible duplicate of Is there an alternative loopback method?

– DavidPostill – 2015-03-12T21:57:42.300

This is the third time you have asked this question (Is there an alternative loopback method?, Alternative loopback method). Please read What should I do if no one answers my question?

– DavidPostill – 2015-03-12T21:59:49.860

Answers

0

If you cannot route to localhost, perhaps you can route to another local server and do the spoof there. Perhaps you can give that server and your machine an extra network address in a /30, with the spoof-server the original IP, and your machine the other IP in that range.

Lenne

Posted 2015-03-12T09:39:33.820

Reputation: 1 163