TvServer obtains IP address of hostname only once (1 Viewer)

Spooky

MP Donator
  • Premium Supporter
  • February 14, 2005
    1,187
    47
    void 4tl
    Home Country
    Austria Austria
    I noticed a small problem regarding the way the TvServer connects to itself or the tv cards. The TvServer seems to obtain the actual ip address of the hostname of the server only once when the service starts and doesn't update it afterwards. This means that if the server is obtaining its IP from a DHCP server and the DHCP server is not reachable for whatever reason, windows assigns as 169.*.*.* ip to the network controller. The TvServer uses this IP from then on (according to the logs), even when windows updates to IP to the correct one from the DHCP server later on. This means that the TvServer is basically not working until the service is restarted.

    Now I know that this could be easily fixed by simply assigning a static IP to the tv server, but still, shouldn't the TvServer try to check what the actual IP is?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Now I know that this could be easily fixed by simply assigning a static IP to the tv server, but still, shouldn't the TvServer try to check what the actual IP is?

    I guess TV server could poll on some basis for the IP change (or maybe .NET allows application to register for some callbacks...) if the obtained adress was 169.x.x.x. But in general it is highly recommended to use static IP addresses in local networks, as you see there there are always more issues with the dynamic ones (and no real benefits).
     

    Spooky

    MP Donator
  • Premium Supporter
  • February 14, 2005
    1,187
    47
    void 4tl
    Home Country
    Austria Austria
    True, it's not a big issue :). One could also argue that it's more important to make sure that the DHCP is always available. In my case the server uses a reserved lease from the DHCP anyway. But still, it's always easier to not have to type in the IP, Gateway and DNS and maybe subnet "everytime" and simply rely on your DHCP.

    Just wanted to report it and see what you guys think of it, and whether or not any harm would be done in implementing a way to recheck the IP.
     

    Users who are viewing this thread

    Top Bottom