Posted on: 5/4/2014 6:27:39 AM | Views : 281

i am trying to create a simple FTP webapps. i can run the applicaiton through internel network (office network) and it worked with out any issues. but when i try throught outside network it is not working. I used the public IP for externel and internal ip for internal.I am using webserver. i wanted to upload it to an external . It throws an exception.
System.Net.WebException: Unable to connect to the remote server at System.Net.FtpWebRequest.GetRequestStream() at FTPWithOutFileUploadControl.Upload(String filename)
Please see the code below
protected void Page_Load(object sender, EventArgs e) { ftpServerIP = "IPofWebserver(or Host name)/vegas"; ftpUserID = "username"; ftpPassword = "Password"; } private void Upload(string filename) { FileInfo fileInf = new FileInfo(filena ...

Go to the complete details ...