Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 22nd Jan 2003 23:25
hilo, im integrating an FTP system into a html web site creator, and one of the guys who im working with on this project said i need to use the PASV command. He doesnt really know what its used for, but was told we needed it or something, anyways...

any ideas? is the PASV command integrated into DBP (or can be with a little work?). Any nice functions or DLLs to make me happy?

Thanx alot
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 23rd Jan 2003 21:12
im just posting to get this topic back to the top again (its way down below), coz this is important to me.

I promise i wont do it again lol
Megaman X
22
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 24th Jan 2003 00:40
I don't know either But try to make a search on google.com. I've always managed to find all I needed in there... Sometimes it even points to a Topic in DB forum. It's a great search engine

"A true warrior fights with skill, not anger..."

Gif edited by Kangaroo2
DirectHavoc
22
Years of Service
User Offline
Joined: 23rd Jan 2003
Location: United States
Posted: 24th Jan 2003 05:08
The PASV (stands for pasive mode) command is neccessary if the client connecting to the server is behind a firewall. It is neccessary mainly for file transfers. Basically it tells the server to open a port and wait for a connection from the client on that port.

Here are the details if you're interested:

In a standard FTP file transfer, the client tells the server that it wants to download/upload a file. The server replies by telling the client to open a random port and then the server tries to connect to the client on that port. If the client is not behind a firewall, he will accept the connection and all will be well.

When the client is behind a firewall, it will reject the incoming connection and the transfer would fail. This is where pasive mode comes in. When the client realizes it cannot accept an incoming connection due to a firewall, it sends the PASV command. The server replies with a port that it will accept a connection on. The client then makes the outgoing connection to that port on the server and is able to transfer the file.

Here are even more details, e.g. a sample connection:
(s=message from server, c=message sent to server)

----------------------------------------------------
Connecting to (xxx.xxx.xxx.xxx).
Connected to IP: xxx.xxx.xxx.xxx PORT: 21.
Waiting for login sequence.

s> 220 FTP Server (xxx.xxx.xxx.xxx FTP)
c> USER testusername
s> 331 Password required for testusername.
c> PASS *******
s> 230 User testusername logged in.
c> SYST
s> 215 UNIX Type: L8
c> PWD
s> 257 "/" is current directory.
c> TYPE A
s> 200 Type set to A.
c> PASV
s> 227 Entering Passive Mode (xxx,xxx,xxx,xxx,15,93).
-----------------------------------------------------

For more info on this, I suggest you read RFC1579, available here: http://www.faqs.org/rfcs/rfc1579.html
I hope this can be helpful to you, I have only started programming in DBP so I don't know how to get this functionality in DBP yet, though I'll try to look into it.

-- DH
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 24th Jan 2003 21:27
thanx for your help, the explaination was kewl, in nice and simple words At least now i know what im trying to do lol, but i dont think there is a way of 'entering' a command for an ftp server. This could maybe be something for patch 4 (or 5), as i think it'd be easy for the db team to code, since they already have communicating commands anyway...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Jan 2003 21:33
There is no way to do this in DB or DBPro at the moment. The DLL that these commands are contained in don't seem to give any hooks to expand the functionality either.

So, either the DBS team has to expand that DLL, or someone has to write a completely new FTP command DLL for you.

Patch 4 is in BETA, and I believe that patch 5 is already planned out, so I think you are probably in for a long wait for it to be added 'officially'.
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 24th Jan 2003 21:59
yeah, i guess so. well i suppose people with firewalls will have to lose out then

Login to post a reply

Server time is: 2025-05-17 06:21:44
Your offset time is: 2025-05-17 06:21:44