List of IP Addresses (General questions)
I would like to make a drop down list in my VB6 app that allows the user to select which IP address to .Bind to. But in VB6 there doesn't seem to be a native way to get a list of local IP addresses (easy enough in .Net, but we're stuck with 6 for now). Any chance we could get this functionality in the server controls?
Thanks!
Re: List of IP Addresses
Hi Christian,
I found an article that you could use:
http://vbnet.mvps.org/index.html?code/network/dhcp_releaserenewaddress.htm
The sample there does more then just listing IP's (can renew dhcp assigned IPs), but you can use only the code you actually need.
Can you try it out?
We could also add a property which would return list of IP's if that doesn't suit your needs.
Regards,
Damba
Re: List of IP Addresses
Thanks for the link, and yes, I was able to solve it using the Windows API.
I still think it would be a valuable addition to the webserver, ftpserver, smtpserver, etc controls! But obviously since there are other ways to do it, it's not a priority. :)
Thanks again!