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

alexhero

Registered
Apr 14, 2012
1
0
51
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
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
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?