bluezed
January 30, 2013, 1:29pm
#1
Hi,
I just started using Piwik and so far it’s great.
However, I’ve got some strange IPs in my visitor log which I cannot explain and was hoping someone here can shed some light.
Basically it looks like every time I visit the site from my Android mobile using either the standard or Dolphin browser, my IP gets recorded as 13.42.xxx.xxx which is nowhere near the real IP.
If I visit http://www.whatsmyip.org/ with the same browsers it comes up as 80.187.xxx.xxx
This was not using WiFi but the data connection through the mobile network.
From normal PC browsers the IPs appear to be correct.
Any ideas what’s going on there?
Thanks!
matthieu
(Matthieu Aubry)
February 4, 2013, 11:30pm
#2
create a page test.php
<?php var_dump($_SERVER); ?>
then visit with your phone. copy paste here the content?
bluezed
February 5, 2013, 6:36am
#3
Hi,
thanks for the reply.
Below’s the Dump…
At the time Piwik reported the IP as 100.98.173.213 but WhatsMyIP reported 80.187.111.21.
If it’s any help my mobile provider is T-Mobile in Germany.
Cheers!
array(50) {
["PHPRC"]=> string(17) "/home/bluezed/etc"
["USER"]=> string(7) "bluezed"
["PATH"]=> string(84) "/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin"
["PWD"]=> string(33) "/var/www/virtual/bluezed/fcgi-bin"
["HOME"]=> string(13) "/home/bluezed"
["SHLVL"]=> string(1) "0"
["ORIG_SCRIPT_NAME"]=> string(26) "/fcgi-bin/php-fcgi-starter"
["ORIG_PATH_TRANSLATED"]=> string(38) "/var/www/virtual/bluezed/html/test.php"
["ORIG_PATH_INFO"]=> string(9) "/test.php"
["ORIG_SCRIPT_FILENAME"]=> string(50) "/var/www/virtual/bluezed/fcgi-bin/php-fcgi-starter"
["SCRIPT_NAME"]=> string(9) "/test.php"
["REQUEST_URI"]=> string(9) "/test.php"
["QUERY_STRING"]=> string(0) ""
["REQUEST_METHOD"]=> string(3) "GET"
["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1"
["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1"
["REDIRECT_URL"]=> string(9) "/test.php"
["REMOTE_PORT"]=> string(5) "33875"
["SCRIPT_FILENAME"]=> string(38) "/var/www/virtual/bluezed/html/test.php"
["SERVER_ADMIN"]=> string(18) "hallo@uberspace.de"
["DOCUMENT_ROOT"]=> string(29) "/var/www/virtual/bluezed/html"
["REMOTE_ADDR"]=> string(13) "80.187.111.21"
["SERVER_PORT"]=> string(2) "80"
["SERVER_ADDR"]=> string(14) "95.143.172.182"
["SERVER_NAME"]=> string(27) "bluezed.aquila.uberspace.de"
["SERVER_SOFTWARE"]=> string(22) "Apache/2.2.15 (CentOS)"
["SERVER_SIGNATURE"]=> string(88) "Apache/2.2.15 (CentOS) Server at bluezed.aquila.uberspace.de Port 80"
["HTTP_X_FORWARDED_PORT"]=> string(2) "80"
["HTTP_CONNECTION"]=> string(5) "close"
["HTTP_CACHE_CONTROL"]=> string(13) "max-age=43200"
["HTTP_HOST"]=> string(27) "bluezed.aquila.uberspace.de"
["HTTP_X_FORWARDED_FOR"]=> string(29) "100.98.173.213, 80.187.111.21"
["HTTP_COOKIE"]=> string(104) "PHPSESSID=qo1m6lat7k5lqn7hgsmjaj01o0; _pk_id.1.1a79=dc7f71e4ef4c46c1.1359531912.2.1359536828.1359531964."
["HTTP_ACCEPT_CHARSET"]=> string(34) "utf-8, iso-8859-1, utf-16, *;q=0.7"
["HTTP_ACCEPT_LANGUAGE"]=> string(12) "de-DE, en-US"
["HTTP_ACCEPT_ENCODING"]=> string(12) "gzip,deflate"
["HTTP_USER_AGENT"]=> string(139) "Mozilla/5.0 (Linux; U; Android 4.1.2; de-de; GT-I9300 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
["HTTP_AUTHORIZATION"]=> string(0) ""
["SCRIPT_URI"]=> string(43) "http://bluezed.aquila.uberspace.de/test.php"
["SCRIPT_URL"]=> string(9) "/test.php"
["REDIRECT_STATUS"]=> string(3) "200"
["REDIRECT_HANDLER"]=> string(9) "php-fcgid"
["REDIRECT_HTTP_AUTHORIZATION"]=> string(0) ""
["REDIRECT_SCRIPT_URI"]=> string(43) "http://bluezed.aquila.uberspace.de/test.php"
["REDIRECT_SCRIPT_URL"]=> string(9) "/test.php"
["FCGI_ROLE"]=> string(9) "RESPONDER"
["PHP_SELF"]=> string(9) "/test.php"
["REQUEST_TIME_FLOAT"]=> float(1360045463.0332)
["REQUEST_TIME"]=> int(1360045463) }
matthieu
(Matthieu Aubry)
February 5, 2013, 9:09am
#4
from your config.ini.php file, remove the line that has"
HTTP_X_FORWARDED_FOR