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.

How to use php curl with account's dedicated ip? (not use main shared ip)

Discussion in 'General Discussion' started by alexhero, Apr 14, 2012.

  1. alexhero

    alexhero Registered

    Joined:
    Apr 14, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I'm using cpanel on vps with 10 ip address. I created an account with a dedicated ip and I build a php application with curl on that.
    When curl access to an url, curl come from main shared IP. I want it use dedicated ip which I set on account.
    How to config to do that?
    Help me, please!
    Thanks
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Re: How to use php curl with account's dedicated ip? (not use main shared i

    Try dedicated IP address in your URL instead of domain name and see if it works.

    Have you pointed nameservers of your domain name to the server?
     
Loading...

Share This Page