1
Xoka
3y

Hello, I'm kinda stuck in this problem: Lets say, I want to give each of my users a dedicated IP address. How do I do it? & what's the best way to do it with python?

No need to share code, just some instructions/guideline would perfect. Thanks in advance.

Comments
  • 3
    Not sure what you mean. You're running some sort of public network?

    Could you give use cases and examples?
  • 0
    @Hazarth Like https://phantombuster.com/

    An automation platform that automates other platforms for you.

    We don't want other platforms to block our server IP address so we want to dedicate each of our users an IP/Proxy.
  • 2
    That's gonna get expensive, fast.
  • 0
    @atheist Don't really care about the expenses, at least for now, but looking for an Easy solution.
  • 1
    @Xoka how are you running? Aws? Each ec2 instance has its own ip address (ish), but check their tos (that might count as abuse). VPNs can provide dedicated ip address, but are not free. The simplest option might be to run from a users ip address, ie download your code and run on their computer (easy if it's javascript), but make sure there's nothing sensitive.
  • 0
    @atheist Actually, can't do it client side. The automations has to be running even when the user is not online.

    So now, we have to dedicate an IP address to each user
  • 0
    Uh... Are you looking for a self-hosted vpn tunnel or a docker network?
  • 2
    You asked "best way to do it with python"

    I don't thinks that the right question.
    Setting ip isn't something you do in programming. You pretty much gotta run 1 sever per ip is my guess...programming agnostic - more of a Devops problem
  • 1
    So you need your server to appear as multiple separate servers to the external services you're connecting to?

    Sounds like you want to become a local Internet registry, lol.
  • 0
    @molaram someone else already done it in our team :D So, I thought, I'd rather ask here
  • 0
    @melezorus34 Not specifically. but I also dont want users ip to get exposed easily while automating their things
  • 0
    @jiraTicket I dont know actually, pardon my ignorance.
  • 0
    @electrineer lol! I dont want my server to appear as different servers but I just want to hide my server ip address so that our server IP doesnt get banned
  • 0
    Hi, disclaimer: I'm a noob
    On AWS you can get a bunch of public IP addresses (how? at what cost? [0]), attach them to different network interfaces (how?) on an instance, then bind different sockets to use different interfaces on the machine, and script accordingly

    [0]: https://aws.amazon.com/about-aws/...
  • 0
    @Xoka use a datacenter ip lol
  • 0
    Thanks but found a solution which is cheaper & reliable :)
  • 4
    @Xoka Well, don't be _that_ guy and tell us your findings.
  • 0
    @melezorus34 actually, even I'm not 100% sure what we're gonna do yet but one of the senior devs said, he's found a solution 🤔
  • 0
    @Xoka 🤦 thanks anyway
Add Comment