Physical Server Name

Discussion in 'ASP General' started by clarkc@missouri.edu, Apr 8, 2009.

  1. Guest

    Here's a question I could not find the answer to in 15 minutes ;)


    How can I get the physcial address or name of the server behind my
    NLB.

    SERVER_NAME and HTTP_HOST are great but I'd like to have the actual
    server name if possible.

    something not in Request.servervariables, perhaps?


    Thanks,
    HankC
     
    , Apr 8, 2009
    #1
    1. Advertising

  2. Jon Wallace Guest

    Hi Hank,

    Although there may be other ways to achieve this, this is a quick method...

    <%
    set oWshNetwork = Server.CreateObject("WScript.Network")
    response.write oWshNetwork.ComputerName
    %>

    Hope this helps,

    Regards,
    Jon

    www.insidetheregistry.com

    --

    <> wrote in message
    news:...
    > Here's a question I could not find the answer to in 15 minutes ;)
    >
    >
    > How can I get the physcial address or name of the server behind my
    > NLB.
    >
    > SERVER_NAME and HTTP_HOST are great but I'd like to have the actual
    > server name if possible.
    >
    > something not in Request.servervariables, perhaps?
    >
    >
    > Thanks,
    > HankC
     
    Jon Wallace, Apr 8, 2009
    #2
    1. Advertising

  3. Guest

    On Apr 8, 1:51 pm, "Jon Wallace" <> wrote:
    > Hi Hank,
    >
    > Although there may be other ways to achieve this, this is a quick method....
    >
    > <%
    > set oWshNetwork = Server.CreateObject("WScript.Network")
    > response.write oWshNetwork.ComputerName
    > %>
    >
    > Hope this helps,
    >
    > Regards,
    > Jon
    >
    > www.insidetheregistry.com
    >
    > --
    >
    > <> wrote in message
    >
    > news:...
    >
    >
    >
    > > Here's a question I could not find the answer to in 15 minutes ;)

    >
    > > How can I get the physcial address or name of the server behind my
    > > NLB.

    >
    > > SERVER_NAME and HTTP_HOST are great but I'd like to have the actual
    > > server name if possible.

    >
    > > something not in Request.servervariables, perhaps?

    >
    > > Thanks,
    > > HankC- Hide quoted text -

    >
    > - Show quoted text -


    Most excellent. Thank you very much...


    HankC
     
    , Apr 9, 2009
    #3
  4. Jon Wallace Guest

    No problem, glad I could help.

    Best Regards,
    Jon

    www.insidetheregistry.com

    ---

    <> wrote in message
    news:...
    On Apr 8, 1:51 pm, "Jon Wallace" <> wrote:
    > Hi Hank,
    >
    > Although there may be other ways to achieve this, this is a quick
    > method...
    >
    > <%
    > set oWshNetwork = Server.CreateObject("WScript.Network")
    > response.write oWshNetwork.ComputerName
    > %>
    >
    > Hope this helps,
    >
    > Regards,
    > Jon
    >
    > www.insidetheregistry.com
    >
    > --
    >
    > <> wrote in message
    >
    > news:...
    >
    >
    >
    > > Here's a question I could not find the answer to in 15 minutes ;)

    >
    > > How can I get the physcial address or name of the server behind my
    > > NLB.

    >
    > > SERVER_NAME and HTTP_HOST are great but I'd like to have the actual
    > > server name if possible.

    >
    > > something not in Request.servervariables, perhaps?

    >
    > > Thanks,
    > > HankC- Hide quoted text -

    >
    > - Show quoted text -


    Most excellent. Thank you very much...


    HankC
     
    Jon Wallace, Apr 9, 2009
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?B?bW9vcJk=?=
    Replies:
    7
    Views:
    844
    Roedy Green
    Jan 2, 2006
  2. ding feng
    Replies:
    2
    Views:
    2,833
    ding feng
    Jun 25, 2003
  3. Bobby Chamness
    Replies:
    2
    Views:
    2,412
    Joe Smith
    Apr 22, 2007
  4. Jack-2
    Replies:
    3
    Views:
    278
    Jack-2
    Dec 24, 2003
  5. Java  script  Dude

    IE name="name" & form.name property bug

    Java script Dude, Jun 29, 2004, in forum: Javascript
    Replies:
    5
    Views:
    252
    Java script Dude
    Jun 30, 2004
Loading...

Share This Page