Using TWSocket you can get a stringlist known as "LocalIPList" which
will list your local IP addresses, except the localhost address. This
however won't tell you what address the HTTP server is listening on, but
if you've told it to listen on 0.0.0.0 (all local addresses), then
LocalIPList will be the IP addresses.
Unfortunately, this will indeed list all local interfaces, including
APIPA ones, as well as your Virtual Adapters, because when listening on
0.0.0.0, it will listen on ALL adapters.
If you are trying to find what your IP address would be for the outside
world (i.e. you have port 80 forwarded from your router to your local
machine), then what you could do is create a dynamic HTTP Client
component and HTTP GET http://icanhazip.com, which will return your IP
Lester
On 05/08/2014 17:25, Stefan Göppert wrote:
Hi,
is it possible to get these information before a client connect - on server
startup? because I need it to know where to connect my client. LocalIPList
gives me several adresses even Virtual IP adapters :-(.
Thank you and best regards
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be