in reply to Re^2: Client IP question
in thread Client IP question

JavaScript document.location sounds plausible, but PHP $_SERVER['HTTP_HOST'] should give the same as Perl CGI's $ENV{'HTTP_HOST'}, because both should come from the (supposedly same) web server — or are you using client side PHP??