CubicDesign wrote: > "Get My IP" ( http://soft.tahionic.com/download-get_my_ip/index.html > ) uses this web site to get the external IP: checkip.dyndns.org All > you need to do is to read the string in that page and cut the > "Current IP Address:" part.
Actually, dyndns's ip-checker is propably even better than the one I suggested - because the address is part of the "standard" dynamic nameservice protocol (ok, it is only a de facto-standard, but anyway) and thus they propably won't be changing the servers response in the near future (unlike whatismyip.com that has added lots of unnecessary junk to their page - most likely to cover the expenses they are facing when everyone keeps checking their IP through their service). Veli BOZATLI wrote: > For Delphi : > http://www.swissdelphicenter.ch/torry/showcode.php?id=1013 > http://www.swissdelphicenter.ch/torry/showcode.php?id=965 Oh please... we're on a Synapse board. Why offer something "non-Synapse" as a solution? :-p In theory (since I don't have Delphi here to try this with) with Synapse this should be something as simple as: program GetExternalIP; {$APPTYPE CONSOLE} uses classes, httpsend; var Response: TStringList; begin Response := TStringList.create; try if not HttpGetText('http://checkip.dyndns.org/', Response) then Writeln('Unable to get external IP.') else Writeln(Response.Text); // Parse this for the IP... finally Response.Free; end; end. -- Markku Uttula ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
