This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- So in other words...
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2011
10:58 AM
Getting local ip address
Hi,
I want to get the local IP address of the machine the setup is running. Is there an easy way to do this?
Regards,
J
I want to get the local IP address of the machine the setup is running. Is there an easy way to do this?
Regards,
J
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2011
12:55 PM
There's probably some WMI query, or similar code, that you can execute in a custom action. However you'll quickly find that trying to answer the question raises several others. Such as "which IP address?" Many laptops in particular have both a wired and a wireless adapter, and each of them may have an IP address.
http://www.google.com/search?q=stackoverflow+get+ip+address+windows got me to http://stackoverflow.com/questions/122208/get-the-ip-address-of-local-computer which has various answers and raises the same question.
http://www.google.com/search?q=stackoverflow+get+ip+address+windows got me to http://stackoverflow.com/questions/122208/get-the-ip-address-of-local-computer which has various answers and raises the same question.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2011
01:03 PM
this basically means no? There is no way to get local ip addresses?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2011
01:42 PM
This depends on what you are trying to do. If you just need to access the host locally, then you should be able to use 127.0.0.1. Check here for some information on retrieveing the IP address
http://stackoverflow.com/questions/122208/get-the-ip-address-of-local-computer
http://stackoverflow.com/questions/122208/get-the-ip-address-of-local-computer