I
I
Ilkhomjon Matazimov2020-08-15 09:48:15
Python
Ilkhomjon Matazimov, 2020-08-15 09:48:15

How to make all traffic go through a proxy in Python?

For a certain Python script to have its own IP

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aleks-th, 2020-08-15
@aleks-th

For starters, google the OSI Network Model
and read carefully.
There are a couple of pages there to understand the process of everything.
--
After that, realizing that the script itself does not and cannot have an IP address. The IP address is lower in level.
Set up a firewall so that from the right ip all the right traffic goes to the right script.
And that's it.
---
This is in general terms.
If you write in detail why you need it, how you plan to organize the network, and what operating system. You can give more detailed advice.

K
kisaa, 2020-08-15
@kisaa

The script cannot have an IP, the address is assigned to the server on which this script is executed. The script can listen on a specific port. And traffic to this port can be wrapped with iptables rules or whatever instead of it.

S
soremix, 2020-08-15
@SoreMix

Proxifier

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question