473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

setup nic-settings

Hello,

I'm trying to set up my network properties e.g. my IP.

Has anybody tried this, and what did you in that case do?
That iphlp-library looks as it has stuff for getting, but not setting, the IP.

Please give me a hint, a snippet or a clue as to what api to use.
Best Regards,
Christian Sternell
Nov 15 '05 #1
1 1728
Christian,

I think that what you will want to do is use the System.Management
namespace. If you get the instances of the Win32_NetworkAdapter and
Win32_NetworkAdapterConfiguration WMI classes, you should then be able to
set the properties on the adapter (such as IP address) through the indexer
(which is the Item property) of the ManagementObject representing the WMI
classes.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"christian" <az*********@msn.com> wrote in message
news:d3**************************@posting.google.c om...
Hello,

I'm trying to set up my network properties e.g. my IP.

Has anybody tried this, and what did you in that case do?
That iphlp-library looks as it has stuff for getting, but not setting, the IP.
Please give me a hint, a snippet or a clue as to what api to use.
Best Regards,
Christian Sternell

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: RosalieM | last post by:
How can i know the nic adress from an incoming socket ? I can easily know the ip adress and port number but how do i have some information about arp level ? Thanks
3
by: martijn | last post by:
H! I thought I was ready with my own spider... But then there was a bug, or in other words a missing part in my code. I forget that people do this in website html: <a...
5
by: Tim Marsden | last post by:
Using VB.NET How do I obtain the NIC number of a particular PC or Server. (By NIC I am refering to the unique network card ID) Thanks Tim
1
by: __Stephen | last post by:
Not finding assistnace on a networking site so I thought that I'd post this here as well. I have a rebuild of a server and we took the OS to 2003 for 2000. I am confused on setting up IIS6....
3
by: Billy Bob | last post by:
Hello I've got three network adapter on my machine, and I'm looking to use WMI to set the IP address of each apapter but I need some help. My network adapters are Intel (R) Pro/100 VE, PRO/1000...
6
by: Pete Kane | last post by:
Hi All, anyone know of a way to programatically get the WAN ip address of either a NIC or router ?
0
by: mahbub83 | last post by:
I receive ping my ip address and also loopback address.But i don't get reply ping from gateway.NIC light shows dark.Is this a problem of NIC?I am little bit confused.I check another pc and connect...
1
tjc0ol
by: tjc0ol | last post by:
I have a windows Pro 2000 as my server and 3 workstations, the server has two NIC installed on it, I would like to ask if what's the major security benefit of using 2 NIC and using as a gateway and...
1
by: Akash | last post by:
If I have 2 or more active NIC Card on my machine is there a way in Windows through which i can find the Default NIC Card(in VC i.e)? (if you feel this is posted in a wrong place please can you...
1
by: kardon33 | last post by:
Hello all, I am trying to write a C program on Unix (OpenBSD 4.3) that will be sniffing a certain packet which is being sent by a diff rent machine to another different machine. The only way I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.