Re: [twsocket] How can I know the IP address?

2012-12-17 Thread Raymond Kennington
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 :

Re: [twsocket] How can I know the IP address?

2012-12-17 Thread Arno Garrels
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

Re: [twsocket] How can I know the IP address?

2012-12-16 Thread Angus Robertson - Magenta Systems Ltd
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