Hi Ashley
Thanks for responding.
>An alternative I've used:
>
>! ipconfig > c:\ip.txt
>cIP=filetostr('c:\ip.txt')
>cIP=substr(cIP,at('IP Address',cIP),at('Subnet Mask',cIP)-at('IP Address',cIP))
>cIP=substr(cIP,at(': ',cIP)+1)
1. The IP for the dial-up is created only at run-time as adaptor 0, maybe easy in this method
2. The Cable-Internet does not have an IP that is returned by IPConfig
3. Don't mean to be rude, people can have more than 1 network cards which one is the Internet one would be difficult with IPConfig and I hate hardcoding for a client.