• Resolved nekromansur

    (@nekromansur)


    Just recently discovered Amazon Link and I’m emjoying its versatility so far, but I have one concern. When I check a link from my PC, it accurately detects my country, but when I do so from my Android device it seems to go to the default country that I have selected in the options.

    I’m not sure if this is a problem with just my device, but I don’t have the means to test it otherwise at the moment. I was just wondering if this plug-in also works for mobile visitors as well?

    https://ww.wp.xz.cn/plugins/amazon-link/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    I have to admit I have not tried it. My mobile makes phone calls (badly) and not much else.

    The plugin relies on the global variable $_SERVER[‘REMOTE_ADDR’] to get the IP address of the visitor.

    Things to try (on your mobile device):

    1. Visit http://www.ip2nation.com and see what IP address and country is being reported
    2. If this is correct, try setting up a ‘info.php’ page on your server and looking for the ‘REMOTE_ADDR’ item – check it matches the one reported in 1.
    3. If 1. is not correct, try visiting http://www.maxmind.com/en/locate_my_ip to see if that gives a better result.

    I have found that the ip2nation database is failing for a lot of my IP addresses, and have been investigating swapping to the MaxMind one.

    — info.php —
    To create an ‘info.php’ page, upload a file called info.php to your webserver with the following contents (then browse to it):

    <?php phpinfo(); ?>

    You should get output similar to this one:

    http://www.vmth.ucdavis.edu/phpfiles/phpinfo.php
    —————–

    Let me know what you discover!

    Paul

    Thread Starter nekromansur

    (@nekromansur)

    I’ve come to a discovery which revealed the source of my problems, and I have some good news for you. In my case, it seemed my Android phone was routing through Googles servers to cache and compress my internet usage, ergo it used an IP in the US (I’m in Canada)

    After having someone test it on the iPhone and having switched the settings on my Android, both platforms appear to work perfectly fine.

    Thanks for making such a wonderful plugin!

    Plugin Author paulstuttard

    (@paulstuttard)

    That’s great!

    Glad you worked it out and many thanks for letting me know what the problem was.

    Paul

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Mobile support?’ is closed to new replies.