473,322 Members | 1,620 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,322 software developers and data experts.

Setting local IP Address in .NET

I need to know how to set my local machines IP address on an adapter from .NET code. Is there a way to do it? I looked at the MSDN website, but I could not see a way to set it. Read it yes, many ways. Thanks in advance for your help.
Oct 29 '08 #1
3 1151
joedeene
583 512MB
Well, what do you mean adapter? Like, do you have some cellphone or something hooked up? Or, do you want to set the local ip of the computer? I don't think it's possible by sending it to the device hooked up to the adapter, if so it would be very difficult. But, using the System.Management Namespace you can set the local IP address of the computer.

joedeene
Oct 29 '08 #2
Curtis Rutland
3,256 Expert 2GB
Here's a thread that might help.

@Joe,
Adapter = network adapter, as in your network connection.
Oct 29 '08 #3
joedeene
583 512MB
Here's a thread that might help.

@Joe,
Adapter = network adapter, as in your network connection.
...Thanks for that, I can't think today, haha, nor anyday. I misread the OP I guess..

joedeene
Oct 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Joshua Beall | last post by:
Hi All, I would like to setup my site so that when a page is request that does not exist, transfer is instead passed to a certain page that I specify. For instance, if the user requests...
2
by: Oliver Klozoff | last post by:
Hi, I am having a hard time setting up an SQL Server 2000 Developer Edition instance for remote clients. The instance is running well and I can connect to it on the local computer. When I try...
5
by: Larry Rekow | last post by:
I've set up small web apps on a few of my clients' servers using Frontpage and ASP and Access. I have them running IIS 5. I want to begin using ASP.NET and convert the current apps and create...
2
by: Sai Kiran | last post by:
Hi! 1. I am using asp.net 2.0 for my application and was wondering is there a way we can hide address bar, menu bar, Links and Standard Buttons of the browser without opening a new window. ...
8
by: google_groups3 | last post by:
Below is a snippet of code I am using. I want to set the IP, subnet and default gateway of my local computer via code. However, when I do it, I get a "not found" (error number 5) error on the...
1
by: Ezz | last post by:
I have an interesting problem...and its one of those where I know what I want but don't know how to ask it =) I have an eCommerce application that uses Paypal for its payment gateway. It is an...
4
by: Tom | last post by:
I come from C but don't really understand why in C++ you can return a temporary object from a function. For example: class Test { public: Test() { cout << "Address of object: " <<this...
6
by: kode4u | last post by:
How to use python get my windows box's ip setting type? Dynamic ip, or static ip? If it's static ip, what's the exact value?
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
7
by: RN1 | last post by:
Is it possible to connect to my local SQL Server 2005 database from a remote web server? If yes, what ConnectionString do I use? Thanks, Ron
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
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...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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.