Answer the question
In order to leave comments, you need to log in
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
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question