Click here to Skip to main content
12,503,635 members (51,480 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

42.6K views
2.9K downloads
42 bookmarked
Posted

Managing Dialup connection

, 30 Nov 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
Mange your Internet connection .
main.JPG

Introduction

I am going to tell you in this artical about how you can access your PC from outside, using simple mobile Internet connection which is frequently disconnected. Normally our mobile GPRS connection gets Dynamic IP(which is frequently changed). 

   Now i want connect to my FTP floder located at my home PC. So that i created a application, this application automatically connected to the dial-up connection if  it's disconnected, and send a mail to your mail id with the IP address.

Background

I taken some code from the code project for the network quality check.

I used "rasdial.exe" for the dial a dial up connection. located at ("c:\windows\system32\rasdial.exe")

Using the code

Before using this code user have set some modification in their connections, code.

ISP Entry Name: Please take care about the ISP entry name, This name don't put spaces and other special characters.

dialupname.JPG

And also remove the redial option for the dialup connection properties....

dialupredial.JPG

SMTP mail : Change the mail address/password in the code. for sender mail ID. this mail id must be enable with the POP3,SMTP Out .

youruserpass.JPG

#Region "</span />Imports"</span />
 mports System
Imports System.IO
Imports System.Net
Imports System.Net.Mail
#End Region
Public Class Manage
#Region "</span />Declarations"</span />
    '</span />'</span />'</span /> <summary>
    '</span />'</span />'</span />  Process Delaration , used for</span /> the run external command (rasdial.exe)
    '</span />'</span />'</span /> </summary>
    Public MyProcess As New System.Diagnostics.Process
    '</span />'</span />'</span /> <</span />summary></span />
    '</span />'</span />'</span /> Holds the Current IP address
    '</span />'</span />'</span /> <</span />/summary></span />
    Public PresentIPAddress As String</span />

 In this code i covered.., Sending mail from vb.NET,  checking the Internet connection quality.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Rajesh Anuhya
Software Developer (Senior)
India India
No Biography provided

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralMy vote of 2 Pin
zohaib12121214-Nov-14 12:29
memberzohaib12121214-Nov-14 12:29 
GeneralMy vote of 5 Pin
Nikolay Aph K.1-Feb-13 3:20
memberNikolay Aph K.1-Feb-13 3:20 
GeneralRe: My vote of 5 Pin
Rajesh Anuhya5-Feb-13 21:27
memberRajesh Anuhya5-Feb-13 21:27 
GeneralMy vote of 5 Pin
Аslam Iqbal17-Mar-11 2:11
memberАslam Iqbal17-Mar-11 2:11 
GeneralRe: My vote of 5 Pin
Rajesh Puli17-Mar-11 2:15
memberRajesh Puli17-Mar-11 2:15 
GeneralMy vote of 5 Pin
-~-Tiba-~- 217-Jan-11 20:54
member-~-Tiba-~- 217-Jan-11 20:54 
GeneralRe: My vote of 5 Pin
Rajesh Puli17-Jan-11 22:08
memberRajesh Puli17-Jan-11 22:08 
Generalnice - have 5 Pin
Pranay Rana17-Jan-11 0:59
memberPranay Rana17-Jan-11 0:59 
GeneralRe: nice - have 5 Pin
Rajesh Puli17-Jan-11 22:08
memberRajesh Puli17-Jan-11 22:08 
GeneralMy vote of 5 Pin
Support_Team29-Nov-10 23:07
memberSupport_Team29-Nov-10 23:07 
GeneralRe: My vote of 5 Pin
Rajesh Puli17-Jan-11 22:07
memberRajesh Puli17-Jan-11 22:07 
Rant[My vote of 1] Very poor coding Pin
Paul Pencoed17-Feb-10 0:46
memberPaul Pencoed17-Feb-10 0:46 
QuestionManaging Connection in LAN Pin
Nisha Agrawal6-Oct-09 20:03
memberNisha Agrawal6-Oct-09 20:03 
AnswerRe: Managing Connection in LAN Pin
Rajesh Puli6-Oct-09 21:43
memberRajesh Puli6-Oct-09 21:43 
Questionnice code Pin
3smrodin328-Oct-08 17:00
member3smrodin328-Oct-08 17:00 
AnswerRe: nice code Pin
Fatal Error6-Nov-08 22:29
memberFatal Error6-Nov-08 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160919.1 | Last Updated 1 Dec 2010
Article Copyright 2008 by Rajesh Anuhya
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid