Web Client Computer Name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QkRSaWNoYXJkc29u?=

    Web Client Computer Name

    I am aware that is is possible to determine the web client computer name
    using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
    System.Web.Http Request.UserHos tAddress). However, this only seems to work if
    the client computer resides within the same domain as the web server.

    Is it possible to determine the computer name for a web client which resides
    in a different domain to the web server?
  • Eliyahu Goldin

    #2
    Re: Web Client Computer Name

    Try Request.UserHos tName.

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    "BDRichards on" <BDRichardson@d iscussions.micr osoft.comwrote in message
    news:E5B475F5-4689-44AC-907F-ECBBC3814E09@mi crosoft.com...
    >I am aware that is is possible to determine the web client computer name
    using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
    System.Web.Http Request.UserHos tAddress). However, this only seems to work
    if
    the client computer resides within the same domain as the web server.
    >
    Is it possible to determine the computer name for a web client which
    resides
    in a different domain to the web server?

    Comment

    • =?Utf-8?B?QkRSaWNoYXJkc29u?=

      #3
      Re: Web Client Computer Name

      Unfortunately, that only returns the IP Address :-(

      "Eliyahu Goldin" wrote:
      Try Request.UserHos tName.
      >
      --
      Eliyahu Goldin,
      Software Developer
      Microsoft MVP [ASP.NET]


      >
      >
      "BDRichards on" <BDRichardson@d iscussions.micr osoft.comwrote in message
      news:E5B475F5-4689-44AC-907F-ECBBC3814E09@mi crosoft.com...
      I am aware that is is possible to determine the web client computer name
      using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
      System.Web.Http Request.UserHos tAddress). However, this only seems to work
      if
      the client computer resides within the same domain as the web server.

      Is it possible to determine the computer name for a web client which
      resides
      in a different domain to the web server?
      >
      >
      >

      Comment

      • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

        #4
        RE: Web Client Computer Name

        for internet users, most use a proxy that will hide their machine name via
        nat translation. if this in an internal application, you can configure
        win/dhcp to update your internal dns server with the computer name.


        -- bruce (sqlwork.com)


        "BDRichards on" wrote:
        I am aware that is is possible to determine the web client computer name
        using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
        System.Web.Http Request.UserHos tAddress). However, this only seems to work if
        the client computer resides within the same domain as the web server.
        >
        Is it possible to determine the computer name for a web client which resides
        in a different domain to the web server?

        Comment

        • Eliyahu Goldin

          #5
          Re: Web Client Computer Name

          I don't think there is any other way.

          --
          Eliyahu Goldin,
          Software Developer
          Microsoft MVP [ASP.NET]




          "BDRichards on" <BDRichardson@d iscussions.micr osoft.comwrote in message
          news:AAF54AEE-C110-48AA-895F-9B1448332E32@mi crosoft.com...
          Unfortunately, that only returns the IP Address :-(
          >
          "Eliyahu Goldin" wrote:
          >
          >Try Request.UserHos tName.
          >>
          >--
          >Eliyahu Goldin,
          >Software Developer
          >Microsoft MVP [ASP.NET]
          >http://msmvps.com/blogs/egoldin
          >http://usableasp.net
          >>
          >>
          >"BDRichardso n" <BDRichardson@d iscussions.micr osoft.comwrote in message
          >news:E5B475F 5-4689-44AC-907F-ECBBC3814E09@mi crosoft.com...
          >I am aware that is is possible to determine the web client computer name
          using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
          System.Web.Http Request.UserHos tAddress). However, this only seems to
          work
          if
          the client computer resides within the same domain as the web server.
          >
          Is it possible to determine the computer name for a web client which
          resides
          in a different domain to the web server?
          >>
          >>
          >>

          Comment

          • =?Utf-8?B?QkRSaWNoYXJkc29u?=

            #6
            RE: Web Client Computer Name

            I understand the basic concepts of DNS and DHCP from when I had technical
            support roles, however, my knowledge of these areas is becoming a little
            dated.

            Are you telling me that one DNS server can be configured to update the
            records of a different server in a different domain? i.e. DNS ServerA in
            DomainA can inform DNS ServerB in DomainB that ComputerA exists.

            If the systems can be configured to solve my problem, then I will have to
            ask the systems guys to investigate.

            "bruce barker" wrote:
            for internet users, most use a proxy that will hide their machine name via
            nat translation. if this in an internal application, you can configure
            win/dhcp to update your internal dns server with the computer name.
            >
            >
            -- bruce (sqlwork.com)
            >
            >
            "BDRichards on" wrote:
            >
            I am aware that is is possible to determine the web client computer name
            using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
            System.Web.Http Request.UserHos tAddress). However, this only seems to work if
            the client computer resides within the same domain as the web server.

            Is it possible to determine the computer name for a web client which resides
            in a different domain to the web server?

            Comment

            • Patrice

              #7
              Re: Web Client Computer Name

              And the result you get is ? Any specific IP we could try ?

              IMO this is more likely that some ISP won't bother with handling this so in
              some cases the ISP will either ignore the request or will return some random
              name...

              What would you do with the host name ?


              "BDRichards on" <BDRichardson@d iscussions.micr osoft.coma écrit dans le
              message de news: E5B475F5-4689-44AC-907F-ECBBC3814E09@mi crosoft.com...
              >I am aware that is is possible to determine the web client computer name
              using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
              System.Web.Http Request.UserHos tAddress). However, this only seems to work
              if
              the client computer resides within the same domain as the web server.
              >
              Is it possible to determine the computer name for a web client which
              resides
              in a different domain to the web server?

              Comment

              • =?Utf-8?B?QkRSaWNoYXJkc29u?=

                #8
                Re: Web Client Computer Name

                Please let me steer you back on to the path of my enquiry.

                This is only for an Intranet application, and I am referring to internal
                corporate domains.

                Sorry for not being clearer from the outset!


                "Patrice" wrote:
                And the result you get is ? Any specific IP we could try ?
                >
                IMO this is more likely that some ISP won't bother with handling this so in
                some cases the ISP will either ignore the request or will return some random
                name...
                >
                What would you do with the host name ?
                >
                >
                "BDRichards on" <BDRichardson@d iscussions.micr osoft.coma écrit dans le
                message de news: E5B475F5-4689-44AC-907F-ECBBC3814E09@mi crosoft.com...
                I am aware that is is possible to determine the web client computer name
                using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
                System.Web.Http Request.UserHos tAddress). However, this only seems to work
                if
                the client computer resides within the same domain as the web server.

                Is it possible to determine the computer name for a web client which
                resides
                in a different domain to the web server?
                >
                >
                >

                Comment

                • Patrice

                  #9
                  Re: Web Client Computer Name

                  And the result you get when trying is ? I also tried to resolve
                  207.46.192.254 which is a microsoft.com machine and it works...

                  --
                  Patrice

                  "BDRichards on" <BDRichardson@d iscussions.micr osoft.coma écrit dans le
                  message de news: 4B15E4B3-C45B-4FD5-AEDF-B62C8DC2BF82@mi crosoft.com...
                  Please let me steer you back on to the path of my enquiry.
                  >
                  This is only for an Intranet application, and I am referring to internal
                  corporate domains.
                  >
                  Sorry for not being clearer from the outset!
                  >
                  >
                  "Patrice" wrote:
                  >
                  >And the result you get is ? Any specific IP we could try ?
                  >>
                  >IMO this is more likely that some ISP won't bother with handling this so
                  >in
                  >some cases the ISP will either ignore the request or will return some
                  >random
                  >name...
                  >>
                  >What would you do with the host name ?
                  >>
                  >>
                  >"BDRichardso n" <BDRichardson@d iscussions.micr osoft.coma écrit dans le
                  >message de news: E5B475F5-4689-44AC-907F-ECBBC3814E09@mi crosoft.com...
                  >I am aware that is is possible to determine the web client computer name
                  using DNS, i.e. invoke System.Net.Dns. GetHostEntry(
                  System.Web.Http Request.UserHos tAddress). However, this only seems to
                  work
                  if
                  the client computer resides within the same domain as the web server.
                  >
                  Is it possible to determine the computer name for a web client which
                  resides
                  in a different domain to the web server?
                  >>
                  >>
                  >>

                  Comment

                  Working...