Quick q:
If I open a socket on my computer and eventualy
the dhcp changes the address of my computer, what happens?
Will it drop the connection?
Thanks in advance for any help on the topic. 7 3102
On Sun, 30 Dec 2007 00:50:01 -0800, TheMadHatter
<Th**********@d iscussions.micr osoft.comwrote:
If I open a socket on my computer and eventualy
the dhcp changes the address of my computer, what happens?
Will it drop the connection?
Not really a C# or .NET question. You'll get much better advice from an
actual network programming newsgroup.
That said, AFAIK you can't change the DHCP-assigned IP address without
resetting all of the network connections. Typically, if the computer is
actually up and running when the DHCP lease runs out, the lease is just
renewed. So the sitaution you're asking about should never happen unless
you do it explicitly (e.g. "ipconfig /release" at the command prompt).
If you _do_ do it explicitly, then yes...I believe none of your
already-created sockets will work.
Pete
"TheMadHatt er" <Th**********@d iscussions.micr osoft.comwrote in message
news:0F******** *************** ***********@mic rosoft.com...
>
Quick q:
If I open a socket on my computer and eventualy
the dhcp changes the address of my computer, what happens?
Will it drop the connection?
Thanks in advance for any help on the topic.
First, this isn't technically a dotNET question, but since it can impact NET
applications, here's the scoop on DHCP. If you have a single active DHCP
server on your network, it will _ALWAYS_ re-lease the same IP to a DHCP
client unless that IP address has been either specifically reservered for
another client or removed from the scope of leasable IPs since he last
lease. This is part of the DHCP specification.
If you have multiple DHCP servers, it depends on whether or not the DHCP
server that previously supplied the lease handles the renewal request. If
it doesn't, then you may drop your connection.
Mike Ober.
>
If you _do_ do it explicitly, then yes...I believe none of your *
already-created sockets will work.
Yes I think that is correct, the nice thing is DHCP-leases as long as
connected they renew before they release (somhwere in my head a thing
like when 2/3 of lease time has expired)
so theoretically if you have a really poor connection and want this to
be a non question for a process computer - use a static address.
I dont have a poor connection and still dont use DHCP, DNS lookup,
wins and whatever..., all static,
I put the server address in the startup file for clients connecting -
dont trust dhcp,dns and others to be up, they are from redmond...
//CY
<ch*******@gmai l.comwrote in message
news:63******** *************** ***********@l32 g2000hse.google groups.com...
>
If you _do_ do it explicitly, then yes...I believe none of your
already-created sockets will work.
Yes I think that is correct, the nice thing is DHCP-leases as long as
connected they renew before they release (somhwere in my head a thing
like when 2/3 of lease time has expired)
so theoretically if you have a really poor connection and want this to
be a non question for a process computer - use a static address.
I dont have a poor connection and still dont use DHCP, DNS lookup,
wins and whatever..., all static,
I put the server address in the startup file for clients connecting -
dont trust dhcp,dns and others to be up, they are from redmond...
//CY
Please don't apply for a network admin anywhere with a medium to large
network. DHCP/DNS are vital to large networks.
Mike.
TheMadHatter wrote:
Quick q:
If I open a socket on my computer and eventualy
the dhcp changes the address of my computer, what happens?
Will it drop the connection?
Of course it will. You can test this yourself by simply ensuring you
have a connection and then doing ipconfig /release to release your IP.
It will reset all connections because everything attached to them is
based on invalid addresses.
As Michael said though, you generally won't have this problem unless
you're talking about being on a broadband connection with a provider who
really likes to change your IP on you. On Home/Corporate networks this
generally isn't an issue at all.
Chris.
dont trust dhcp,dns and others to be up, they are from redmond...
//CY
Please don't apply for a network admin anywhere with a medium to large
network. DHCP/DNS are vital to large networks.
Also they are not from Microsoft, they are IETF standards. If the Microsoft
server implementation isn't reliable, then use another one.
Please don't apply for a network admin anywhere with a medium to large
network. *DHCP/DNS are vital to large networks.
Also they are not from Microsoft, they are IETF standards. *If the Microsoft
server implementation isn't reliable, then use another one.
Correct, but why use one at all when I am talking about 30
computers... static is not a problem here...
//CY This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Richard D. Ford |
last post by:
Does anyone know if VB has an exposed API that can be used to query DHCP for
current address leases? I have seen threads that discuss DHCPObj.dll and
have successfully used it. However, this only exposed the server's
configuration, not the current address leases. I was also able to track
down an interface that is exposed to C, but 1.) already have a lengthy app
written in VB and 2.) don't know enough about C to write my own dll to do...
|
by: Steve |
last post by:
Hi Folks, I'm trying to create a c# class to manage a DHCP subnet using
the win api (dhcpsapi.dll). Currently I can't even instanciate my
class, instead I receive the error: System.TypeLoadException. Does
anybody have experience working with this API from C# or know of some
documentation/examples? Thanks in advance. steve.
|
by: WhatHappend |
last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service
invocations have delay of around 10seconds on each intial access. After the
first access subsequent access are fast (After a whild of inactivity the next
access will be slow agian). Changing the client to static IP address instead
of DHCP makes the initial access about 1 second which is fine.
Monitoring the network of the client computer the cleint is sending out 2...
|
by: Richard |
last post by:
Hello,
I'm working on an application to allow our network team to use a small
application to make DHCP reservations on our Microsoft DHCP Server.
The problem is you have to use P/Invoke to do it, and from what I've
found on the web and in this newsgroup is that it's not easy, however I
believe it can/has been done.
At the moment I'm just trying to find out information about an existing
|
by: GHUM |
last post by:
Hello,
I need to get a list of active leases on a windows dhcp server.
Experts from Microsoft statet:
""""
A: Go to the Address leases of each scope in the DHCP snap-in and dump
the leases to a text file from the DHCP server snap-in. The text file
gives you all the information for every active lease. You might also
| |
by: Screenbert |
last post by:
After finding nothing anywhere in google I am posting this so everyone
can benefit by it. The formating is not pretty since I copied it from
my word document, but you should benefit by it.
Managing DHCP Servers using C#
They said it was impossible. It couldn't be done. But you can in fact
manage DHCP servers using C#. This includes creating and deleting
Scopes, SuperScopes, Reservations, Exclusions, Options and so forth.
Since the dll...
|
by: screenbert |
last post by:
Managing DHCP Servers using C#
They said it was impossible. It couldn't be done. But you can in fact
manage DHCP servers using C#. This includes creating and deleting
Scopes, SuperScopes, Reservations, Exclusions, Options and so forth.
Since the dll that is used was written several years ago by Microsoft,
you cannot manage things on the DNS tab when looking at a reservation
and few things such as that however it gives you main things you...
|
by: ixeye |
last post by:
Anybody else ever had a problem like this?
Windows 2003 Domain with 180 machines,
21 of them with XP SP2 Laptop Wireless
access to the domain, on three different WIFI AP.
Randomly (and luckily infrequently) I am
"losing" my dhcp on wireless machines where
they will "drop" off the network suddenly
and then not reconnect even rebooting, yet
if I change to static IP they will reconnect
fine (I am trying to stem a flow since I
|
by: cyberking |
last post by:
Hi all,
Firstly, I am very little knowledgible when it comes to Windows OS (Client OS or Server OS). But offlate my urge to get myself in terms with it increased and soon I was meddling with the various services offered by Win Server 2003.
Ok. Now here s the scenario. Firstly I have a Huawei Router with DHCP enabled in it. And then I have 'bout 5 machines at home which I intended to set up as a network and make one of the machines a Monster...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |