website connect from dedicated ip address
Hello,
We have a cPanel installed on a machine with multiple IPs, and we found that each website connect to the internet using the shared IP, not it's dedicated IP
I need to make each website connect to the internet from it's own IP, not from the shared one !!!!
for example
Our server address ( Main IP / Shared IP ) is : x.x.x.10
and
Website 1 dedicated IP is : x.x.x.11
Website 2 dedicated IP is : x.x.x.12
.
.
.
and so on,
When we make a PHP script to check IP address ( fsockopen ready site like showip.net ) we found that all of them connected using the shared IP ( x.x.x.10 ) not from it's dedicated IP address
We need to hide the server shared IP from each of them
how can we make this
Regards
-
Hi, When we make a PHP script to check IP address ( fsockopen ready site like showip.net ) we found that all of them connected using the shared IP ( x.x.x.10 ) not from it's dedicated IP address
You may have to change your PHP script because by default the traffic goes from the server through one IP only, which is the main IP of the server.. If you get the different result everytime, then you may have to pay cPanel license for each one of the IP address.. Below is the command that the cPanel executes internally to verify the outgoing IP address of the server against the IP that is licensed for cPanel. curl -L Installation Guide - Troubleshoot Your Installation - Version 68 Documentation - cPanel Documentation0 -
Hello @Tamer Fahmy, There's a thread on this topic, with a potential workaround, at: It's in reference to cron jobs, but it would apply to outgoing connections from the PHP script in general as well. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments