General information
Category:
Windows API functions
I assumed that the internal one was what he was looking for - if it is internal (intranet) it would not be visible to the public.
This routine works in what I think is a similar situation, where we need to know the IP address of a workstation for troubleshooting purposes.
>Ashley
>In his case, this won't work for him, since he will get the internal IP address, not the external ( public ) one.
>Jaime
>
>>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)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only