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. Other Discussions
  3. Article Writing
  4. Obtaining IP address from modem device via PPP

Obtaining IP address from modem device via PPP

Scheduled Pinned Locked Moved Article Writing
c++
3 Posts 2 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.
  • J Offline
    J Offline
    Johnas Cukier
    wrote on last edited by
    #1

    I want to obtain the IP address off a modem device which has a fixed IP address. The modem AT commands do not give this information. When I connect it to my computer and connect via PPP, the host computer acquires the modem IP address using the Windows OS. I know this is done through the PPP protocol. Does anyone have C/C++ source code that I can use to mimic this. I don't even want to establish a connection, I just want the IP address.:) Thanks, jic

    L 1 Reply Last reply
    0
    • J Johnas Cukier

      I want to obtain the IP address off a modem device which has a fixed IP address. The modem AT commands do not give this information. When I connect it to my computer and connect via PPP, the host computer acquires the modem IP address using the Windows OS. I know this is done through the PPP protocol. Does anyone have C/C++ source code that I can use to mimic this. I don't even want to establish a connection, I just want the IP address.:) Thanks, jic

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

      > I want to obtain the IP address off a modem device > which has a fixed IP address. You apparently don't know what IP is. Perhaps a more polite response would be: Please study some more. Your modem doesn't get an IP. A modem is a "dumb" device (in this context) that only shuffle bytes. Wrapped on top of that is (whith some extra stuff) PPP. IP is something your OS is providing. You should look at the RAS API to get the IP of that adapter from Win32.

      J 1 Reply Last reply
      0
      • L Lost User

        > I want to obtain the IP address off a modem device > which has a fixed IP address. You apparently don't know what IP is. Perhaps a more polite response would be: Please study some more. Your modem doesn't get an IP. A modem is a "dumb" device (in this context) that only shuffle bytes. Wrapped on top of that is (whith some extra stuff) PPP. IP is something your OS is providing. You should look at the RAS API to get the IP of that adapter from Win32.

        J Offline
        J Offline
        Johnas Cukier
        wrote on last edited by
        #3

        I am not stupid!!! The device is not an ordinary modem. It is a cellular phone with a fixed IP address. I know that the IP address is passed to the host when a PPP connection is initiated. I would like to extract that address without completing the connection. Do you have source code that will enable me to extract that IP address?:mad:

        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