Re: Test for IP address change?

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 01/07/05


Date: Sat, 8 Jan 2005 00:43:30 +1100


"Hoof Hearted" <HoofHearted@discussions.microsoft.com> wrote in message
news:43732228-2FA8-42B6-A182-551DE6A6D30E@microsoft.com...
> My server is connected to the internet via a dlink adsl modem. The modem
> connects to the internet and then assigns the static ip address to the
> network card on my server using it's own DHCP. This all works fine until
> there is a glitch on the adsl line. The modem then assigns a 192.168
address
> to the network card and the internet becomes unavailable.
> If I repair the network connection it regains the static ip address from
the
> modem.
>
> I would like to have a scheduled task which checks the IP address, and if
it
> has changed to a 192.168 address, then force a repair of the network
> connection. Is there a way of doing this?
>
> Confinguring the network card directly with the static IP address doesn't
> work.
>
>

It seems strange that you cannot assign a static IP address to your
server.

Anyway, here is a batch file that will check your server IP address:

@echo off
ipconfig | find /i "IP Address" | find "192.168" || goto :eof

c:\tools\RepairNetworkConnection.exe



Relevant Pages

  • RE: Internet connection via 2nd network card without ISA
    ... I understand that one of your client computer accesses Internet very slow ... Microsoft CSS Online Newsgroup Support ... Internet connection via 2nd network card without ISA ... >I have tried setting the DNS to that of the server ip 10.0.0.2 but won't ...
    (microsoft.public.windows.server.sbs)
  • Re: SOMEONE agrees with me on price!!
    ... Our dollar's value to the American dollar has been all over the place ... and the server was up in less than an hour. ... I remember when I upgraded my Internet service to the best service ... - they'll mail me a new modem. ...
    (alt.games.warcraft)
  • Re: Setting up Remote Web work place to acess from Internet
    ... power on my Broadband modem the IP changes. ... is assigned by my dsl modem router. ... So like you mentioned if i have to reach it from the internet via ... record pointing back to the same server. ...
    (microsoft.public.windows.server.sbs)
  • RE: Internet access problem !
    ... I am also facing similar kind of problem with modem and internet ... I am also not able to ping to DNS server or any other IP address. ...
    (microsoft.public.windowsce.embedded)
  • Dual Nic - Network Settings Advice
    ... with my sbs2k3 server and would appreciate any advice. ... uses the same subnet with IP 10.0.0.30....100. ... internet without having to go through the servers dual nic. ... My main concern was the choice of network card settings. ...
    (microsoft.public.windows.server.sbs)