> 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?
Again: on computer not exists something like 'internal' or 'external' IP addresses. Computer can have one or more IP addresses. It is just set of IP addresses. Nothing more! You never see in your network configuration something like "this is internal and this is external IP!" You can only set some set of addresses. What IP address will be used for outgoing packet? Simply - by routing table. This table define outgoing route and associated outgoing IP address by best match for destination. However winsock program not selecting route. It is selected by network stack! Yes, you can bind socket to some specific local address. But after this outgoing packets can be unreachable in some cases, when destination is available by different IP address only. -- Lukas Gebauer. E-mail: [email protected] WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP Library ------------------------------------------------------------------------------ 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
