Thanks for all the suggestions but , I found and example which I have modified for my needs. Currently using Synapse but it only returns the loopback IP address since in my case the ports eth0 and eth1 are both static IP's.
https://www.mail-archive.com/synalist-public@lists.sourceforge.net/msg03470/getlocalips.lpr It is a bit odd that something like this isn't incorporated into Free Pascal sockets. Thanks Brian -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal