Topic "Network Error:Connection Refused"

Author Message


Hi, I am just trying WinSCP. I have a window 2003 server standard edition service pack 2. WinSCP version 4.3.4. The GUI version works just fine. However I am having trouble to get scripting version working. Here is my script saved in a txt file.

option batch on
option confirm off
open realusername@localhost

winscp.exe /console /script=example.txt

I got the "network error:connection failed" error.

Any help would appreciate.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
WinSCP defaults to SFTP protocol. Maybe you are using different one in the GUI? Compare log files from the GUI and script to see what the difference is.
Martin Prikryl


That was it. Thanks so much!

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License