Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Problem with FTP  (Read 11950 times)

0 Members and 1 Guest are viewing this topic.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #15 on: September 14, 2009, 07:56:21 PM »
Anyone?
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #16 on: September 15, 2009, 08:16:21 PM »
I really hate people who bunp their own thread, but now I know how it feels. :-\
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Problem with FTP
« Reply #17 on: September 15, 2009, 11:36:26 PM »
I really hate people who bunp their own thread, but now I know how it feels. :-\
My personal view is to first make sure the connection works well with a reliable FTP client. Then , if you have to, use the FTP thing from the command line. The FTP client has better error messages and, IMO, is  easier to troubleshoot.
Here is just part of the WS_FTP Pro   documentation.

Quote
Command Line Options
WS_FTP Pro Command

The command for using WS_FTP Pro from the command line differs depending on which version you installed. Replace ftpro with the executable name of the version you are currently using, for example ftp95 or ws_ftp. See WS_FTP Versions for a list of the executable names for each version.

Syntax

Use the following syntax to transfer a file using the command line. Command arguments, as well as other items enclosed in brackets, are optional. Italics indicate a variable, for example hostname. The bar character "|" means OR, for example hostname | local means you enter either a hostname or the word "local.")

Note: Use the -m argument for transferring multiple files. (Not available in WS_FTP Limited Edition.)

   To transfer a file from the remote system to the local system, use

ftp95pro [command arguments] hostname | profilename:pathname/filename [local:
pathname/[filename]

hostname: or profilename:

hostname must be the full domain name or the IP address of a remote host. The User ID will be anonymous and the password will be the specified e-mail address. The hostname must be followed by a colon.

profilename must be the name of a session profile created in the Session Properties dialog box. If the profile contains your username and password (and you checked the Save Password box), these are used. If the profile is not in the default .ini file, use the -i argument to specify another .ini file. profilename must be followed by a colon.
Note: Processing rules for this operation are to use the host, User ID, password, account and gateway/firewall information specified in the profilename if one exists. If one doesn't exist, it is assumed that the hostname is an actual host and the User ID will be anonymous and the password will be the specified e-mail address.

pathname/filename   

Enter the pathname, including the drive letter, and the filename for the file on the remote system. (For example, c:\docs\report.txt)

local:pathname/filename   

Enter the pathname, including the drive letter, and the filename for the file on the local system. (The pathname/filename is preceded by the word local followed by a colon, loc

I have been able to use the command line option of the free version to send files to multiple websites in a big batch file so that I would not have to do each one by hand.

mroilfield



    Mentor
  • Thanked: 42
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 11
Re: Problem with FTP
« Reply #18 on: September 15, 2009, 11:54:45 PM »

echo open>C:\schoolchatdatar.oti
echo USERNAME>>C:\schoolchatdatar.oti
echo PASSWORD>>C:\schoolchatdatar.oti
echo get test.txt>>C:\schoolchatdatar.oti
echo bye>>C:\schoolchatdatar.oti
pause
ftp -i -s:C:\schoolchatdatar.oti 0catch.com
pause
del C:\schoolchatdatar.oti
.

The above sure does have the word School in it a lot. Are you trying to do something on your school computers that you aren't supposed to do?
You can't fix Stupid!!!

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #19 on: September 16, 2009, 04:18:27 AM »
There is currently no rule against using a computer to communicate to an other computer. And this was at home. I want to make sure it works before I check it at school to see if its blocked.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

mroilfield



    Mentor
  • Thanked: 42
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 11
Re: Problem with FTP
« Reply #20 on: September 16, 2009, 04:31:05 AM »
There is currently no rule against using a computer to communicate to an other computer. And this was at home. I want to make sure it works before I check it at school to see if its blocked.

Why not just ask your teacher if it is blocked?
You can't fix Stupid!!!

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #21 on: September 16, 2009, 03:27:05 PM »
Teachers wouldn't know. This code is supposed to check if the host works normally. I'm just wondering if it's my code that's the problem, and not the host.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Problem with FTP
« Reply #22 on: September 16, 2009, 03:38:16 PM »
Simple. Just test your code on a open ftp site near you.
http://www.ftp-sites.org/

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Problem with FTP
« Reply #23 on: September 16, 2009, 05:35:44 PM »
The code isn't the issue...
The access may be however.
" Anyone who goes to a psychiatrist should have his head examined. "

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #24 on: September 16, 2009, 05:38:25 PM »
Well it says the connection has been closed, not incorrect password. I really don't know why the host is acting up. Can anyone point me to a free ftp host.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Problem with FTP
« Reply #25 on: September 16, 2009, 06:32:09 PM »
Not from school...no.
I think you are misunderstanding what FTP is and does...
" Anyone who goes to a psychiatrist should have his head examined. "

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #26 on: September 16, 2009, 06:36:41 PM »
Well, I know what ftp does. I am trying to transfer files from 1 computer to another. One computer appends a file to a file on the host, and the second computer gets that file from the host.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Problem with FTP
« Reply #27 on: September 16, 2009, 09:25:06 PM »
At school they prevent you from sending stuff out.
It is a security thing. Or maybe an proper usage issue.
At school the expect you to be reading stuff off the network,
not sending out stuff.
The administrator can tell you what methods of sending information are allowed.
FTP means two-way exchange, so they would block that. It normally is on the port called 21. For a web page the port is 80.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Problem with FTP
« Reply #28 on: September 16, 2009, 10:06:00 PM »
personally, I think the issue is obvious.

ftp -i -s:C:\schoolchatdatar.oti 0catch.com

you have the FTP site... but what file are you downloading from the ftp site?
I was trying to dereference Null Pointers before it was cool.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #29 on: September 17, 2009, 04:41:19 PM »
A test file. It says "Hello World". But it says connection closed by the host.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.