Answer the question
In order to leave comments, you need to log in
How to redirect a program request from one IP to your server (another IP)?
Hello!
I apologize in advance if this has already been asked, but I couldn't find it with a search.
There is the following problem: there is a virtual machine, Win7 and the host is also Win 7. There is a program in the virtual machine that, when launched, checks the license file by sending data in the form of xml to its ip XXX.XXX.XXX.XXX. If the server responded with an xml with such and such an element and the value "true" in it, then the program is started. In all other cases, no.
I looked with the Windows Network Monitor what exactly it sends and simulated a request in PHP. I got the correct xml to run, wrote a PHP script to return this xml, but now it's a dark forest for me. I don't know how to redirect a request from XXX.XXX.XXX.XXX to my server ip YYY.YYY.YYY.YYY so that the program reads xml and works.
Those. the program starts, the button is pressed and the program sends a request to XXX. I need Win 7 to redirect the request from XXX to YYY, only one IP and that's it. Unfortunately hosts does not work with Ip->Ip, so this easy method is no longer needed. Out of the corner of my eye I saw that linux has iptables, but there is no such thing for Win. It is also possible to try to open the program and if this IP is there, then rewrite it to your own. But I still hope that I will find an easier solution, because. this is not a smaller forest for me.
Answer the question
In order to leave comments, you need to log in
Proxy debuggers:
fiddler2.com
https://github.com/Kolyaj/Yaxy/blob/master/readme_ru.md
To run software with a proxy:
ProxyCap
www.proxifier.com
PS These are only the most famous softwares.
Assign this IP with a mask of 255.255.255.252 to the computer's network interface.
There is a utility for win - relaytcp. I often use it when I need to redirect something from port 1 to port 2. There are 2 types, as a service or as a simple binary.
here is the description:
RelayTCP allows you to forward TCP/IP connections from a local port to a remote IP and port. RelayTCP allows you to log all connections and transmitted data.
as an option - you put a virtual machine on your computer, give it the right address. on a host you register a route to this address through the virtual interface.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question