IP connectivity
flcusat
Posts: 309
I'm just wondering what IP address of websites are prefered to check IP connectivity. I was using Verizon.net but it was changed recently.
0
Comments
This website returns your external IP address, this format never changes, because people need this for dynamic dns. If you do not want to setup your own website page just for this pupose. This is very easy to parse...
http://checkip.dyndns.com:8245/
http://www.amx.com/ip.asp
I have tried connecting to both DynDNS and AMX, but I get an error when i try to connect to anything but the root of the domain (e.g. www.amx.com not www.amx.com/ip.asp). At least the DynDNS address is part of the FQDN. Any ideas how to navigate known server directory structure?
http://www.amx.com/ip.asp is the link I just copied from my browser. It worked for me. It is just a web page. How are you trying to access it?
Line 2 :: UNKNOWN HOST: www.amx.com/ip.asp - 11:05:58
Line 3 :: ClientOpen mxInetAddr or hostGetNyName error 0x0 - 11:05:58
I made sure that my master has the correct DNS and everything.
You are asking the server to run a script. IP_CLIENT_OPEN will do that all by itself. You have to open the connection to www.amx.com without the /op.asp, then issue a GET command through that connection. A browser does this all automatically; you need to do it in the code. This is going to be true of any web service. Open the connection to the server, then send whatever is necessary for that particular server to get what you want.
But I get this
Any ideas?
found it here http://www.amxforums.com/showthread.php?t=3150
Just change the URL and file names to match the one you want to use. There are examples of other HTTP commands that you can play around with but I found no real purpose for them, not yet any way.
You'll need to use the Connect function which you can call by a button push or a timed event. Once the Connect function is called and you're connected to the server an online event will occur and trigger the GET function and with luck you'll receive data and trigger the string_event.
You can get rid of the paremeter in the connect function. That's just there so I can see what called the function in debug.
you are welcome. That's what's cool about this forum. I've received lost of help here as well.
ejm