How to use many IPs without creating many ports

Support Account
Support Account
  • Updated

Use a port with a zone that has allocated IPs. When sending the curl requests, set the desired IP for each of your requests using an ip parameter. If you want to send a request via an IP “10.20.30.40”, for example, your request will look like this:

curl -x lum-ip-10.20.30.40@127.0.0.1:24001 http://lumtest.com/myip.json

The request's structure is:

curl -x lum-ip-{IP_ADDRESS}@{IP}:{PORT}{DESTINATION-URL}

The other option for controlling targeting dynamically and possibly differently on each request is by using headers.

"x-lpm-ip: {IP_ADDRESS}"

Example request could look like this:

curl --proxy http://127.0.0.1:24000 -H "x-lpm-ip: 10.20.30.40" http://lumtest.com/myip.json
Share this

Was this article helpful?

0 out of 0 found this helpful