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.
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.
And also remove the redial option for the dialup connection properties....
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 .
#Region "</span />Imports"</span />
Public Class Manage
#Region "</span />Declarations"</span />
Public MyProcess As New System.Diagnostics.Process
Public PresentIPAddress As String</span />
In this code i covered.., Sending mail from vb.NET, checking the Internet connection quality.