dcsimg
Results 1 to 3 of 3

Thread: [RESOLVED] Host name from IP address (Windows Phone)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2012
    Location
    Denmark
    Posts
    216

    Resolved [RESOLVED] Host name from IP address (Windows Phone)

    Hi,

    Can someone please show me how to get the remote host name from the IP address when the remote is a Windows 10 Phone.

    When the remote is a Windows computer I can use the following code but it doesn’t work when the remote is a Windows Phone.

    Code:
            Dim HostEntry As IPHostEntry = Dns.GetHostEntry(mRemoteIP)
            Dim mRemoteComputer as String = HostEntry.HostName
    Where mRemoteIP is the IP address of the remote

    Thank you in advance

  2. #2
    Fanatic Member PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Newport, UK
    Posts
    846

    Re: Host name from IP address (Windows Phone)

    There is no reason why every host needs to have a hostname, that is especially true for devices like mobile phones. Even if a device does have a hostname there is also no guarantee that it is discoverable, for this to work over IP it would require the DNS server to have reverse lookups enabled which is often not the case either.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2012
    Location
    Denmark
    Posts
    216

    Re: Host name from IP address (Windows Phone)

    Hi PlausiblyDamp,

    Thank you for your reply. I see what you mean with the DNS reverse lookup and that there is no real solution to this.

    /Henrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width