Answer the question
In order to leave comments, you need to log in
How to make the console utility work through a proxy?
Actually, there is some utility that specifies the address of the server to work with in the config (for example, ya.ru).
But here's the problem - on some machines there is no direct access to the Internet - only through the gateway (192.168.1.1) on which Freeproxy is installed. On machines without Internet, the proxy address 192.168.1.1:8080 is registered in the browser, and everything works fine. But the rest of the software, which itself does not know how to work through a proxy, does not work.
Question: can some small console utility redirect direct requests to a specific address (ya.ru) through a proxy?
You need an exclusively console utility, preferably in one file and with the ability to be started by a service.
OS - Windows XP.
Thank you for your reply.
Answer the question
In order to leave comments, you need to log in
Alternatively, you can set the hosts file for the ya.ru domain as the IP address 127.0.0.1 and run a proxy server (for example, nginx) on the local machine that will forward the request further to 192.168.1.1:8080
But this solution will only work for domains , registered in hosts.
Of course, I can be wrong, correct me if this is not so, but you can use the command netsh winhttp set proxy .........? Not?
is it impossible to release an application through NAT with host access to this particular "ya.ru"?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question