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. C#
  4. What is my IP??

What is my IP??

Scheduled Pinned Locked Moved C#
questiontutorial
10 Posts 6 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
    Sunil G 3
    wrote on last edited by
    #1

    Hi All, Is there any way to know what is my public IP?? example say my public IP is 202.214.215.12 How would I know my IP?? Please dont say ipconfig. Thanks, Sunil G.

    L L B 4 Replies Last reply
    0
    • S Sunil G 3

      Hi All, Is there any way to know what is my public IP?? example say my public IP is 202.214.215.12 How would I know my IP?? Please dont say ipconfig. Thanks, Sunil G.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Yes, there is a way, you could ask your NAT device what its (and therefore also your) public IP address is.

      S 1 Reply Last reply
      0
      • L Lost User

        Yes, there is a way, you could ask your NAT device what its (and therefore also your) public IP address is.

        S Offline
        S Offline
        Sunil G 3
        wrote on last edited by
        #3

        Can u give me some idea how to do it??

        M L 2 Replies Last reply
        0
        • S Sunil G 3

          Hi All, Is there any way to know what is my public IP?? example say my public IP is 202.214.215.12 How would I know my IP?? Please dont say ipconfig. Thanks, Sunil G.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Try a Google search, there are quite a few sites that can find this information for you. I think one of them may even be called "whatsmyip.com".

          Just say 'NO' to evaluated arguments for diadic functions! Ash

          1 Reply Last reply
          0
          • S Sunil G 3

            Can u give me some idea how to do it??

            M Offline
            M Offline
            monstale
            wrote on last edited by
            #5

            Hi, you could use UPnP of your router ;-) bye

            1 Reply Last reply
            0
            • S Sunil G 3

              Can u give me some idea how to do it??

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              MonoTorrent can do it (UPnP and NAT-PMP), Windows has stuff for this build-in as well but it's not very reliable (IIRC it depends on a service which can be disabled), and you could read my article (it's a little old though)

              1 Reply Last reply
              0
              • S Sunil G 3

                Hi All, Is there any way to know what is my public IP?? example say my public IP is 202.214.215.12 How would I know my IP?? Please dont say ipconfig. Thanks, Sunil G.

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

                IMO the only reliable way is by asking the external world. Here[^] is one of many sites that may help. :)

                Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                R 1 Reply Last reply
                0
                • S Sunil G 3

                  Hi All, Is there any way to know what is my public IP?? example say my public IP is 202.214.215.12 How would I know my IP?? Please dont say ipconfig. Thanks, Sunil G.

                  B Offline
                  B Offline
                  Bernhard Hiller
                  wrote on last edited by
                  #8

                  My router registers at dyndns.org, so I can query the IP address for my dyndns name.

                  1 Reply Last reply
                  0
                  • L Luc Pattyn

                    IMO the only reliable way is by asking the external world. Here[^] is one of many sites that may help. :)

                    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                    Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                    R Offline
                    R Offline
                    RobK410
                    wrote on last edited by
                    #9

                    I wrote a command line tool in C# (code included) that will use a service on my server to pull external IP. http://robkennedy.com/2011/05/13/myip-a-robust-command-line-tool-for-retrieving-local-and-remote-ip-addresses/[^] Hope this helps.

                    http://robkennedy.com/ woot

                    L 1 Reply Last reply
                    0
                    • R RobK410

                      I wrote a command line tool in C# (code included) that will use a service on my server to pull external IP. http://robkennedy.com/2011/05/13/myip-a-robust-command-line-tool-for-retrieving-local-and-remote-ip-addresses/[^] Hope this helps.

                      http://robkennedy.com/ woot

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

                      That does not help me at all, I did not have the problem, and I did offer a solution here[^]. :doh:

                      Luc Pattyn [My Articles] Nil Volentibus Arduum

                      The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
                      Please use <PRE> tags for code snippets, they improve readability.
                      CP Vanity has been updated to V2.3

                      modified on Friday, June 10, 2011 8:43 PM

                      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