M
M
marshadow2020-08-09 00:31:12
Computer networks
marshadow, 2020-08-09 00:31:12

How to redirect the http request of the program to another server?

OS - windows. I have a program that sends an http request to an external IP address, I need to make sure that these requests are redirected to another IP address, or at least to localhost. How can I implement this? (preferably in python) I tried to change the hosts file, it did not work. Thanks in advance for any response.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Yasnov, 2020-08-10
@gaarchik

You go into the router, do a redirect through NAT. And you will be happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question