Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!

I would like to implement a C# program which forwards packets through an FTP server.
Well, I didn't do any coding so far, because I don't know where to start. And I don't know whether is it possible or not?

EDIT:
I forgot to mention what I want to do with it. I would like to browse the internet, so the computer at home is loading the page, and forwards the packet to another computer which has access to the same FTP as my home computer.
Posted
Updated 29-Apr-11 3:41am
v3

1 solution

This doesn't make any sense. But if I understand you correctly, no, FTP cannot be used as a proxy server on a packet basis.

Your home machine would have to download the entire contents of web pages, upload them to an FTP server, then your machine (that can't browse the web directly) would have to download all of the files that make up the web page from the FTP site to show them.

Frankly, this is going to be a nightmare to get working.
 
Share this answer
 
Comments
velvet7 29-Apr-11 9:53am    
Well, yes, I have tried to save the whole page, and upload it, but when saving sites which uses ajax it simply goes wrong, because you can't navigate to a site.
Dave Kreskowiak 29-Apr-11 10:35am    
Those sites aren't going to work. There's no way to forward packets through an FTP server.
velvet7 29-Apr-11 10:38am    
No, I am talking about uploading the whole page to FTP, and the downloading it from the FTP, but how would you send the request form the client side if your don't know the exact link? And because of ajax you won't get the exact link.

For example: how would you send the request to the server to reply to this comment? There's no link, or anything like that.
Dave Kreskowiak 29-Apr-11 11:10am    
That's where the custom browser would come in. How are you going to get the new request back to your "proxy" machine so it can download the new page? THe only way tou can do that would be to write a text file on the FTP server that your "proxy" picks up to get its next page.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900