cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
instTst
Level 4

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
Labels (1)
0 Kudos
(3) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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.
0 Kudos
instTst
Level 4

this basically means no? There is no way to get local ip addresses?
0 Kudos
bobmcm461
Level 6

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
0 Kudos