New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Need some help for dedicated IP in cpanel
Hello,
I need to understand how dedicated IP works in cPanel or apache general.
Say I create an account with IP XXX.XXX.XXX.222 , through cPanel its assigned to only that particular site. The host primary / shared IP is : XXX.XXX.XXX.111 .
I understand that in apache IP based virtual host is added. However, the thing I need to clarify is that when that site makes API request to some other service or server, what IP that other server will see.. will it be shared IP or dedicated IP assigned to that site ?
If I am not clear in my question then please let me know, I will try to explain further.
Comments
How will the request be made? Via PHP Curl ?
Apparently its simple http GET request like this :
Where yyy.yyy.yyy.111 is remote server IP.
And then parsing the result URI for data needing with simple regex.
How will you execute this request ? As it means a lot in terms of what IP will be used.
Let me give hypothetical example:
I have server A with shared IP xxx.xxx.xxx.111
I have website named "saahib.com" on it with dedicated IP xxx.xxx.xxx.222
Now, on that site "saahib.com", I have uploaded a file like "remote-data.php" which will make request to remote server yyy.yyy.yyy.111:9090
The content of following looks like this :
So, from what IP yyy.yyy.yyy.111 will see request originating. ?
Will come from the servers 'main ip', not your dedicated IP. You can make command line curl bind to a different IP, not sure about PHP.
Usually when you call the server you can use any IP that bonded to server. But server main IP will call you.
If you call the shared ip, you may get blocked by CSF. Speaking from experience.
Well, I did test and I see that request is coming from shared IP ie. main server IP irrespective of any IP assigned to the account making request.
Now, is it same in case of curl and soap request ?
Yes