473,511 Members | 15,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FTP Transfer

Hi all

I'm write FTP applicatioin, but it must use port mode for transfer data and
through gateway. i want to known how to do?
Nov 15 '05 #1
4 1549
What do you mean by "port mode"?

In general the application doesn't have to know if there are any gateways.

"Soulspace" <yi****@eastasp.com> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hi all

I'm write FTP applicatioin, but it must use port mode for transfer data and through gateway. i want to known how to do?

Nov 15 '05 #2
"Soulspace" <yi****@eastasp.com> wrote in news:OuBbqEt5DHA.2732
@TK2MSFTNGP09.phx.gbl:
I'm write FTP applicatioin, but it must use port mode for transfer data and
through gateway. i want to known how to do?


Do you mean passive mode? Or more likely user@site proxy method? I dont think
the limited FTP functionality in .net supports the second one. Although the
second one you can do yourself by altering your user name. There are other
types of proxies too that you might be talking about

Indy contains full FTP support including passive, user@site, and more.

http://www.indyproject.org/indy.html

And its free.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 15 '05 #3
Hi Vadym Stetsyak:

FTP Data connection type can use PORT mode or PASV mode
the first mode client open a port wait connected and send "PORT" command to
server tell it's IP address and port. If client connect through gateway then
server cann't find client use this IP address and port to transfer data.
"Vadym Stetsyak" <pd****@ukr.net> wrote in message
news:e7**************@TK2MSFTNGP10.phx.gbl...
What do you mean by "port mode"?

In general the application doesn't have to know if there are any gateways.

"Soulspace" <yi****@eastasp.com> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hi all

I'm write FTP applicatioin, but it must use port mode for transfer data

and
through gateway. i want to known how to do?


Nov 15 '05 #4
On Fri, 30 Jan 2004 09:31:58 +0800, Soulspace wrote:
Hi all

I'm write FTP applicatioin, but it must use port mode for transfer data and
through gateway. i want to known how to do?


My colleague did mention Indy (http://www.indyproject.org). This library
is not only free but open source. It includes quite a vast amount of FTP
functionality including PORT and PASV transfers plus quite a lot of other
nifty stuff including some of the latest FTP extended commands (I know
because I have quite a bit to that client over time). We do support quite
a number of proxy configurations and we have an entire section in our
knowledge base that discusses proxies (there's a link right on the main
page).

Since you are talking about a gateway, I wonder what type of gateway you
really are talking about. There's many different types of proxy
configurations in use today including SOCKS, NAT, HTTP Connect through, and
some specialized FTP proxies. You should consult the proxies manual or ask
the administrator. For applications being deployed widely on a potential
variety of network configurations, it's best to utilize as much support
from your library as you can.

All of this having been said, FTP really is NOT firewall proxy friendly at
all because that protocol uses two connections (a control connection for
sending commands and a data channel for sending and receiving data), IP
addresses and port combinations are communicated, and in PORT transfers,
the client listens on a port for one connection. About the only reason I
can see for FTP working on some NAT IP masquerading configurations is that
the NAT has some smarts about the FTP protocol and will do appropriate
fix-ups between the client and the server including intercepting PORT
commands on the control connection. In some firewall configurations,
administrators have to open up several ports on their firewalls just for
FTP to work.

HTH.
--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website - http://www.nevrona.com/Indy
Personal Home Page - http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not
contact me.
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2088
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
5
7802
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
9
4590
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
5
2556
by: Guadala Harry | last post by:
I've been reading up on Server.Transfer as well as doing some testing, and it appears to always raise the ThreadAbortException error. On one hand I've read a bunch of promotional-type material...
11
5994
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
15
1921
by: dee | last post by:
Hi, I'm curious why MS decided to have Transfer hide the target page's url invisible? Any guesses ? Thanks. Dee.
8
3870
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
6
2168
by: n# | last post by:
A Basic Question in ASP.NEt 1.1 In Page_Load Event I am doing a Server.Transfer. But it throws an error on the browser windows showing "Server Application Not Found" Pls help me
4
3986
by: evantay | last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties from my master pages within a page that inherits from that master page (a child page). However the values are always null....
2
3089
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.