How do you return your public ip address to a string variable?
A dynamic name service would return their IP and not your IP address using the code below.
http://checkip.dyndns.com.
A dynamic name service would return their IP and not your IP address using the code below.
http://checkip.dyndns.com.
Code:
REM In this example the DNS service is returned zServer = "MyServer.com" HOST ADDR zServer TO ip& IF ip THEN DIM p AS BYTE PTR p = VARPTR(ip&) zServer = USING$("#_.#_.#_.#", @p, @p[1], @p[2], @p[3]) ELSE ? "Unable to convert " + zServer + " to an IP address." EXIT FUNCTION END IF IF zServer = "204.13.248.125" THEN ? "Dynamic name service IP address can not be used." EXIT FUNCTION END IF
Comment