Hostname or ipaddress change over account lifetime?

Discussion in 'ASP.NET / ASP.NET Core' started by SparkleMuncher, Jul 22, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    Do the HostName or IPAddress of my account change over the lifetime of the account?

    Thanks,

    Rana

    ---
    string strHostName = Dns.GetHostName();
    IPAddress[] aIPAdresses = Dns.GetHostAddresses(strHostName);
     
  2. The IP address and the hostname will not change on the server, as it would obviously cause a lot of issues if customers are handling their own DNS.
     
  3. mjp

    mjp

    Well, the IP could change. We certainly try to avoid it, but we can't make any guarantees that a machine's IP will never change. Mail server IPs are the most likely to change, so we recommend always using the hostname.
     
  4. ..Don't you guys love how honest "mjp" always is?
    Shows integrity....can't get enough of that nowadays. ;-)
     
  5. Thank you. I will use the Hostname.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page