Re: Assigning IP Addresses

Adam Tuliper <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <04d301c761ef$eb331520$c1993f60$@com>
Several ways.. more than I'll include here but these should be good to start
1. use wmi and the EnableStatic method  see:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar06/hey0329.
mspx
http://www.enterpriseitplanet.com/resources/scripts_win/article.php/3437351

2. use netsh at the command line (shell off a script or command directly)
netsh interface ip set address name="Local Area Connection" static
192.168.1.0 255.255.255.0 192.168.0.1 1

netsh can export connection settings as well and using wmi for ex you can
enumerate for adapters and get assigned ips.


-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of Peter
Osucha
Sent: Thursday, March 08, 2007 5:15 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Assigning IP Addresses

Sorry, Phil.

An SBC - single board computer.  It's a small computer - typically running
an embedded OS (mine is running WinXP embedded) that often acts as the
'brains' of a larger system.  And by system, I mean a larger 'machine' like
a medical diagnostic machine or a CNC machine, etc.

I am *pretty* sure that these devices would normally have an IP address of
192.168.1.0.  You can change then in much the same way you'd change your own
machine.  However, the systems I am interacting with have no user interface.
It would be nice to be able to change their IP addresses from my remote
system in an easy way.  It would also be nice to somehow determine what the
IP address of a machine is by knowing, perhaps, it's name but all this
through some sort of polling over an Ethernet connection.

Peter

-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of Phil
Sayers
Sent: Thursday, March 08, 2007 5:07 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Assigning IP Addresses

what is SBC?


-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]]On Behalf Of Peter
Osucha
Sent: Thursday, March 08, 2007 5:04 PM
To: [email protected]
Subject: [DOTNET-WINFORMS] Assigning IP Addresses


I have a need to be able to assign an IP address to an SBC that resides
inside a machine through an application running on another machine.  I
understand the security issues that might be associated with such a request
- however, this is a legitimate need.  I am not even sure what topics might
be useful to look at for this task.  Any ideas, please?



peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.