Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 22nd December 2011, 03:43   #1
sr164w
Junior Member
 
Join Date: Nov 2011
Posts: 10
IP address drop down in installer page

HI,

First,I am using nsDialogs dropdown menu to display all IP addresses which are connected to my system.

Next, When user selects one IP I have to populate that IP in the next line in hyperlink.

Below is the code to do in Java

Enumeration<NetworkInterface> networkInterfaceEnum = NetworkInterface.getNetworkInterfaces();
// Initialize the server IP list which contains the all IP addresses connected to my system
serverIPList = new ArrayList<String>() ;

for (; networkInterfaceEnum.hasMoreElements()
{
NetworkInterface networkInterface = networkInterfaceEnum.nextElement();
Enumeration<InetAddress> inetEnum = networkInterface.getInetAddresses();
for (; inetEnum.hasMoreElements()
{
InetAddress addr = inetEnum.nextElement();
serverIPList.add(addr.getHostAddress());


Any suggestions to achieve above in the Installer .nsi file??
sr164w is offline   Reply With Quote
Old 23rd December 2011, 11:04   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 545
http://nsis.sourceforge.net/IpConfig_plugin
jpderuiter is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump