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. IT & Infrastructure
  4. How do I start a PPP session from a windows command line or app?

How do I start a PPP session from a windows command line or app?

Scheduled Pinned Locked Moved IT & Infrastructure
questionc++comtoolshelp
2 Posts 1 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.
  • P Offline
    P Offline
    prcarp
    wrote on last edited by
    #1

    I am looking for a way to start and stop a PPP connection from a Windows (C++) application. I originally posted a similar question here[^] and was pointed to the Windows NETSH command. At first, that looked like what I needed but upon closer examination, did not fit the bill. :( I have an icon all set up in the networking control panel but I need to establish this connection via another program. That program also needs to disconnect that interface when it is finished. Any help or pointers would be greatly appreciated. Thanks!

    P 1 Reply Last reply
    0
    • P prcarp

      I am looking for a way to start and stop a PPP connection from a Windows (C++) application. I originally posted a similar question here[^] and was pointed to the Windows NETSH command. At first, that looked like what I needed but upon closer examination, did not fit the bill. :( I have an icon all set up in the networking control panel but I need to establish this connection via another program. That program also needs to disconnect that interface when it is finished. Any help or pointers would be greatly appreciated. Thanks!

      P Offline
      P Offline
      prcarp
      wrote on last edited by
      #2

      I found the answer and so I am posting it here for others.... The Windows utility is called RasDial (RasPhone looks like a phonebook front end to RasDial). From the command line, you can call rasdial "connection name" user pw /domain:d to make the connection. I tested it and successfully made a VPN connection to my workplace from home. It also works for my cellular modem card which is what I needed it to do. Looking through the MSDN docs, there appears to be an API with the Platform SDK that might also do it but I haven't tried it.

      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