The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setting ip address in curl

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

  1. Anuj Shah

    Anuj Shah Registered

    Joined:
    Sep 25, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    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?

    Thanks

    Anuj
     
Loading...

Share This Page