a2zpattaya

Member
May 12, 2006
5
0
151
Whenever I login to my cPanel I get greeted with:

Welcome MyDomain.com! Last login from: MyTrueIPAddress

I'm generally behind a High Security proxy, and have tried all manner of IP address tests (PHP,Java,PERL, etc) all over the web and all they can give me is my proxy address. The greeting message however gives my True IP Address.

How is that done? It really is great.
 

webignition

Well-Known Member
Jan 22, 2005
1,876
0
166
What proxy settings do you have in your browser? If you check, you'll notice that your web proxy is set for port 80. This means it will only act as a proxy for traffic on port 80.

cPanel is accessed through ports 2083 or 2083 and so traffic on these ports will be going direct and not through your proxy.
 

a2zpattaya

Member
May 12, 2006
5
0
151
Answer

I have no settings for proxy. The type of Proxy Server (Bluecoat) my ISP uses is, as best as I can determine, fully automatic and sits between the first server I connect to (My ISP) and the web. It appears to be set as High Anonymous and therefore does not pass server variables such as HTTP_X_FORWARDED_FOR.

webignition: I have no idea what ports they allow in the proxy. Your idea sounds about right as cPanel is the only thing that I need a port number for, and that's the only place that sees MyRealIP.

PWSowner: I can use http://www.MyDomain.com:2082 but not http://www.MyDomain.com:2083. https://www.MyDomain.com:2083 is however valid. In both cases I get MyRealIP never 127.0.0.1. That probably is because I'm entering cPanel on a different computer than the server from the other side of the world. Hence I'm not LocalHost.

Thanks anyway for all your help guys. I'll have to try and persuade my ISP to change the proxy to a Transparent one.
 

PWSowner

Well-Known Member
Nov 10, 2001
2,940
4
343
ON, Canada
a2zpattaya said:
I can use http://www.MyDomain.com:2082 but not http://www.MyDomain.com:2083. https://www.MyDomain.com:2083 is however valid. In both cases I get MyRealIP never 127.0.0.1. That probably is because I'm entering cPanel on a different computer than the server from the other side of the world. Hence I'm not LocalHost.
That's because port 2083 requires https to work. 2083 is for secure and therefore won't work without the s.

What method it cPanel uses to get the IP address is probably buried in the compiled source code.