Hi.
I used the function below (from the WWW).
It uses GetHostname in one of the paths, which you might find useful for
distinguishing the IP addresses.
Raymond
---
Dr. Raymond Kennington
function GetIPAddress(var IPAddress : String) : Boolean;
type
pu_long = ^u_long;
var
varTWSAData :
David Bridges wrote:
If I have a wired local area connection and some wireless connection
how can I know which I'm connected through? If I can obtain the IP
address of the adapter I'm connected through I could tell but can't
determine how to do that. I tried GetPeerAddr() but it's returning
If I have a wired local area connection and some wireless
connection how can I know which I'm connected through?
The Internet Protocol Helper Component at:
http://www.magsys.co.uk/delphi/magiphlp.asp
lists all the adaptors and the IP allocated to them.
ICS can only give you a combined