Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. need to know public IP address using vb.net

need to know public IP address using vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sipder
    wrote on last edited by
    #1

    In my application I need to know the public IP Address of my machine which I will get after connecting to the internet. Is it possible to know using VB.Net code?

    R L 2 Replies Last reply
    0
    • S Sipder

      In my application I need to know the public IP Address of my machine which I will get after connecting to the internet. Is it possible to know using VB.Net code?

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      use System.Net.Dns class try Googling. Hope above link helps you

      Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

      1 Reply Last reply
      0
      • S Sipder

        In my application I need to know the public IP Address of my machine which I will get after connecting to the internet. Is it possible to know using VB.Net code?

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, AFAIK you can't get the public IP address programmatically without the help of some web site. Here is one for you: http://www.perceler.com/tools1.php[^] You could use the HttpWebRequest class and GetResponse() method to access such page programmatically. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Voting for dummies? No thanks. X|


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups