How to connect to internet using dialup

I want to write a program to dial a number, authortize the password, and connect to internet.

Would anyone help me




Answer this question

How to connect to internet using dialup

  • yyy2k3

    To futher clarify the post below, RAS apis are not exposed via managed code. You will need to P/Invoke the native functionality

  • glebur

    If you use C# to connect to the internet, shouldn't OS prompt user to verify the connection automatically (just a guess, I haven't been using modems since year -97) Well, at least you shold ask the user first, othervise your program is considered as a dialer and soon blocked by malware scanners allaround the globe...

  • Bernd Kicker

    Hi

    Well, as noted, it could be classed malwhare, but if you need it you need it i guess.

    There's a nice program included with windows called "rasphone", if you run it in a command window it'll give you an option to dial any connection that's on the system.

    There's another called, rasdial, which basically does the same sans-gui, both programs have the / command-line switch, give it a try and it'll show you how to use them.

    Running either of these using the Process Class should work great, and give you feedback!

    Hope this helps


  • andrew_parlane

    Thanks for both answers,

    But i need to do it, in MY program, i have a program, which can do it. All i have to do is double clicking it. then it will connect using an unknow user/pass, I want to write a program like that, using c#, not more.,

    thanx again.



  • websdaleandrew

    Ok, simple way is to use rasphone and rasdial, the not-so-simple way is to figure out the RAS API (Remote Access Service), since this is how Windows connects to the internet

    Can't tell you much more, because i don't know any more myself, sorry!


  • How to connect to internet using dialup