Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Setting ip address in curl

Discussion in 'General Discussion' started by Anuj Shah, Sep 25, 2010.

  1. Anuj Shah

    Anuj Shah Registered

    Sep 25, 2010
    Likes Received:
    Trophy Points:

    I have a VPS with WHM and several IP addresses attached to several domains on the box.

    When running Curl through a php script I'd like to set the IP address it connects from. So if I connect to another php script, that target script will the IP address I set as the REMOTE_ADDR. Right now it seems to always use the main IP of the server, regardless of which domain script I'm running is under.

    Is this possible? If so how might one go about doing it?



Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice