Jump to content

_GetIP() not work in China


fopetesl
 Share

Recommended Posts

_GetIP() uses:

http://checkip.dyndns.org, http://www.myexternalip.com/raw and http://www.bot.whatismyipaddress.com

The 'bot' address fails on DNS search. The first two work as expected from England.  However, my final code needs to work worldwide but there's an issue in China where all these URLs are blocked. So I need to (re)write _GetIP() to access a so far unknown Chinese equivalent of checkip../myexternalip..

I could use a ping but I don't know of a Chinese 'universal' IP address guaranteed to work.

Any clues as to how to resolve welcome.

The most powerful number in the Universe.  Zero.

Link to comment
Share on other sites

you can also try STUN,

I used the @trancexx version referenced in that thread when i was behind restrictive firewalls.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...