amos wrote: > i ran it on a different computer who has a router and the result > there was 1 IP: 10.0.0.1 which is his internal IP and not the > "outside" one. how can i retrieve its "outside" one? > > on another computer (without a router) i got 3 different IPs when > only the last one was the "outside" one, is it always the last one?
As has been pointed out, a computer in a network has no idea how it can be connected (or will, if it is even possible in the first place) from "the outside" (ie. from another network). The only way to even hazard a guess is to take a look "from the outside" (which is what the examples provided in earlier messages more or less attempt to do) but even this is not anywhere near foolproof; it is very much possible that attempting to connect the address my computer seems to be hailing from can in fact be routed to some entirely different machine, to an entirely different network, on an entirely different continent. I do realise why many applications would want to be able to determine what the "external address" is, but as it is, attempting to do this programmatically is - at best - just a guess. Only way to know for certain is to ask this thing from the user (who will, in turn, ask it from their service provider, network manager, or generally "someone who knows"). -- 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
