Obtaining IP address from modem device via PPP
-
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
-
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
> 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.
-
> 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.
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: