Getting external IP Address

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iwdu15

    #1

    Getting external IP Address

    Hi, im trying to get the public IPAddress of a computer programmaticall y. I
    tried using

    Net.DNS.GetHost Entry(Net.Dns.G etHostName()).A ddressList(0)

    but that only gives the inter-network IPAddress. how can i get the external
    IP Address....if that makes any sense

    thanks
    --
    -iwdu15
  • xla76

    #2
    Re: Getting external IP Address

    You need to add a web reference such as...


    then try something like:
    Console.WriteLi ne(My.WebServic es.AddressInfo. GetAddress())

    Hope this helps.

    Pete Forman


    iwdu15 wrote:
    Hi, im trying to get the public IPAddress of a computer programmaticall y. I
    tried using
    >
    Net.DNS.GetHost Entry(Net.Dns.G etHostName()).A ddressList(0)
    >
    but that only gives the inter-network IPAddress. how can i get the external
    IP Address....if that makes any sense
    >
    thanks
    --
    -iwdu15

    Comment

    Working...