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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Get IP address of LAN

Get IP address of LAN

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 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.
  • L Offline
    L Offline
    Le Thanh Cong
    wrote on last edited by
    #1

    I work in a LAN, IP address of my computer is 192.168.0.111, default gateway is 192.168.0.1 How do I get real IP address of LAN when connect to Internet? (ex:203.162.1.123) ----------------- conglt

    D T 2 Replies Last reply
    0
    • L Le Thanh Cong

      I work in a LAN, IP address of my computer is 192.168.0.111, default gateway is 192.168.0.1 How do I get real IP address of LAN when connect to Internet? (ex:203.162.1.123) ----------------- conglt

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Your LAN does not have an IP address. It is just a collection of computers, printers, routers, etc. Perhaps you are wanting the firewall's IP address instead.


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      E 1 Reply Last reply
      0
      • L Le Thanh Cong

        I work in a LAN, IP address of my computer is 192.168.0.111, default gateway is 192.168.0.1 How do I get real IP address of LAN when connect to Internet? (ex:203.162.1.123) ----------------- conglt

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Le Thanh Cong wrote:

        I work in a LAN, IP address of my computer is 192.168.0.111, default gateway is 192.168.0.1How do I get real IP address of LAN when connect to Internet? (ex:203.162.1.123)

        try GetNetworkParams api

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        L 1 Reply Last reply
        0
        • T ThatsAlok

          Le Thanh Cong wrote:

          I work in a LAN, IP address of my computer is 192.168.0.111, default gateway is 192.168.0.1How do I get real IP address of LAN when connect to Internet? (ex:203.162.1.123)

          try GetNetworkParams api

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          L Offline
          L Offline
          Le Thanh Cong
          wrote on last edited by
          #4

          I tried this function but only can get local information ----------------- conglt

          1 Reply Last reply
          0
          • D David Crow

            Your LAN does not have an IP address. It is just a collection of computers, printers, routers, etc. Perhaps you are wanting the firewall's IP address instead.


            "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

            "There is no death, only a change of worlds." - Native American Proverb

            E Offline
            E Offline
            Eytukan
            wrote on last edited by
            #5

            DavidCrow wrote:

            wanting the firewall's IP address instead.

            you mean the proxy?:^)


            --[V]--

            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