Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

FitzG

Network error: Invalid argument

Solution: Copy the executable to a local disk partition. worked as well
Emanuele

The solution is reported here:
<invalid hyperlink removed by admin>

The problem is that the executable file is launched from a network device (in my case from the storage on the root server of the Windows domain), should be solved moving the executable of WinSCP on the local computer.

Much information in the link reported up.

Regards, Emanuele.
Gnoll

Hello,
I have the same problem:

PuTTY version: 0.63
WinSCP Portable version 5.5.5 (Build 4605)

When I try to put a hostname (ex. www.google.it) this report as an error:
gethostbyname: unknown error

If I try to connect with the IP address the error is:
Network error: Invalid Argument

Windows 7 Enterprise 64 Bit (managed in a Windows Domain)

I've set in debug mode, if can be helpful this is the log:
. 2014-10-07 15:58:26.744 --------------------------------------------------------------------------
. 2014-10-07 15:58:26.744 WinSCP Version 5.5.5 (Build 4605) (OS 6.1.7601 Service Pack 1 - Windows 7 Enterprise)
. 2014-10-07 15:58:26.755 Configuration: \\root.tradedoubler.com\TD\Telford\Home\emagr\WinSCP.ini
. 2014-10-07 15:58:26.756 Local account: TRADEDOUBLER\emagr
. 2014-10-07 15:58:26.756 Working directory: \\root.tradedoubler.com\TD\Telford\Home\emagr
. 2014-10-07 15:58:26.756 Process ID: 9024
. 2014-10-07 15:58:26.756 Command-line: "\\root.tradedoubler.com\TD\Telford\Home\emagr\WinSCP.exe"
. 2014-10-07 15:58:26.756 Time zone: Current: GMT+1, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Daylight Time), DST Start: 3/30/2014, DST End: 10/26/2014
. 2014-10-07 15:58:26.756 Login time: Tuesday, October 07, 2014 3:58:26 PM
. 2014-10-07 15:58:26.756 --------------------------------------------------------------------------
. 2014-10-07 15:58:26.757 Session name: IP.ADDR.ESS.HIDE (Ad-Hoc site)
. 2014-10-07 15:58:26.757 Host name: IP.ADDR.ESS.HIDE (Port: 22)
. 2014-10-07 15:58:26.757 User name:  (Password: No, Key file: No)
. 2014-10-07 15:58:26.757 Tunnel: No
. 2014-10-07 15:58:26.757 Transfer Protocol: SFTP (SCP)
. 2014-10-07 15:58:26.757 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2014-10-07 15:58:26.757 Proxy: none
. 2014-10-07 15:58:26.757 Send buffer: 262144
. 2014-10-07 15:58:26.757 SSH protocol version: 2; Compression: No
. 2014-10-07 15:58:26.757 Bypass authentication: No
. 2014-10-07 15:58:26.757 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-10-07 15:58:26.757 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-10-07 15:58:26.757 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-10-07 15:58:26.757 Simple channel: Yes
. 2014-10-07 15:58:26.757 Return code variable: Autodetect; Lookup user groups: A
. 2014-10-07 15:58:26.757 Shell: default
. 2014-10-07 15:58:26.757 EOL: 0, UTF: 2
. 2014-10-07 15:58:26.757 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-10-07 15:58:26.757 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-10-07 15:58:26.757 SFTP Bugs: A,A
. 2014-10-07 15:58:26.757 SFTP Server: default
. 2014-10-07 15:58:26.757 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2014-10-07 15:58:26.757 Cache directory changes: Yes, Permanent: Yes
. 2014-10-07 15:58:26.757 DST mode: 1; Timezone offset: 0h 0m
. 2014-10-07 15:58:26.758 --------------------------------------------------------------------------
. 2014-10-07 15:58:26.909 Looking up host "IP.ADDR.ESS.HIDE"
. 2014-10-07 15:58:26.909 Connecting to IP.ADDR.ESS.HIDE port 22
. 2014-10-07 15:58:26.909 Failed to connect to IP.ADDR.ESS.HIDE: Network error: Invalid argument
* 2014-10-07 15:58:26.994 (EFatal) Network error: Invalid argument
. 2014-10-07 15:59:07.230 --------------------------------------------------------------------------
. 2014-10-07 15:59:07.231 WinSCP Version 5.5.5 (Build 4605) (OS 6.1.7601 Service Pack 1 - Windows 7 Enterprise)
. 2014-10-07 15:59:07.240 Configuration: \\root.sanlocal.com\TD\Telford\Home\emagr\WinSCP.ini
. 2014-10-07 15:59:07.240 Local account: TRADEDOUBLER\emagr
. 2014-10-07 15:59:07.241 Working directory: \\root.sanlocal.com\TD\Telford\Home\emagr
. 2014-10-07 15:59:07.241 Process ID: 9024
. 2014-10-07 15:59:07.241 Command-line: "\\root.sanlocal.com\TD\Telford\Home\emagr\WinSCP.exe"
. 2014-10-07 15:59:07.241 Time zone: Current: GMT+1, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Daylight Time), DST Start: 3/30/2014, DST End: 10/26/2014
. 2014-10-07 15:59:07.241 Login time: Tuesday, October 07, 2014 3:59:07 PM
. 2014-10-07 15:59:07.241 --------------------------------------------------------------------------
. 2014-10-07 15:59:07.241 Session name: www.google.it (Ad-Hoc site)
. 2014-10-07 15:59:07.241 Host name: www.google.it (Port: 22)
. 2014-10-07 15:59:07.241 User name:  (Password: No, Key file: No)
. 2014-10-07 15:59:07.241 Tunnel: No
. 2014-10-07 15:59:07.241 Transfer Protocol: SFTP (SCP)
. 2014-10-07 15:59:07.242 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2014-10-07 15:59:07.242 Proxy: none
. 2014-10-07 15:59:07.242 Send buffer: 262144
. 2014-10-07 15:59:07.242 SSH protocol version: 2; Compression: No
. 2014-10-07 15:59:07.242 Bypass authentication: No
. 2014-10-07 15:59:07.242 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2014-10-07 15:59:07.242 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2014-10-07 15:59:07.242 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2014-10-07 15:59:07.242 Simple channel: Yes
. 2014-10-07 15:59:07.242 Return code variable: Autodetect; Lookup user groups: A
. 2014-10-07 15:59:07.242 Shell: default
. 2014-10-07 15:59:07.242 EOL: 0, UTF: 2
. 2014-10-07 15:59:07.242 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2014-10-07 15:59:07.242 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2014-10-07 15:59:07.242 SFTP Bugs: A,A
. 2014-10-07 15:59:07.242 SFTP Server: default
. 2014-10-07 15:59:07.242 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2014-10-07 15:59:07.242 Cache directory changes: Yes, Permanent: Yes
. 2014-10-07 15:59:07.243 DST mode: 1; Timezone offset: 0h 0m
. 2014-10-07 15:59:07.243 --------------------------------------------------------------------------
. 2014-10-07 15:59:07.360 Looking up host "www.google.it"
* 2014-10-07 15:59:07.424 (EFatal) gethostbyname: unknown error

Thanks, Emanuele.
Barbalex

Re: Network Error - "Invalid Argument"

Possibly it is to late to post here but if somebody still have the issue and need a solution:

I had the same issue on my WinXP with latest 4.3.3 version.
I was able to resolve the issue. Just run WinSCP as an Administrator.
Seems like something wrong with permissions...
Hope this will be helpful.

Sorry for my English :)
martin

@Guest: Would this FAQ help?
Guest

I am having the same exact problem. I have reinstalled the program serveral times. Me and my server co are at a total loss as to what is going on. BUT, I am a total noob. How do you log in to WinSCP using PuTTY? I mean, I have PuTTY and can log in as root, but how do I get to WinSCP?

I am used to the warm fuzzy interface used by WSFTP but it doesn't allow root access (which I gotta have with my new server)

SOS! Please help
martin

Re: Network Error - "Invalid Argument"

Thanks. I'll investigate it.
QSS

Re: Network Error - "Invalid Argument"

Release 0.58 of PuTTY
martin

Re: Network Error - "Invalid Argument"

I've meant version of PuTTY.
QSS

Re: Network Error - "Invalid Argument"

Version 3.8.1.
martin

Re: Network Error - "Invalid Argument"

What version? Sorry, I should have asked for this before.
QSS

Re: Network Error - "Invalid Argument"

My contractor can log in using PuTTY.
martin

Re: Network Error - "Invalid Argument"

Can you try to login using PuTTY?
Guest

Re: Network Error - "Invalid Argument"

The same has occurred with my laptop too. I changed my status with my internet provider to "fixed IP address" whereas before the address was simply generated by the provider.

Would this cause the problem, is a fixed IP address not compatible with WinSCP? If so this could also be the reason for your inability to login.
QSS

Same problem.

I was having all our clients switch over to WinScp because it is much fast at transfers. When one of my contractors tried to connect to the server, "Network Error-Invalid Argument" I had them double check the host name and username and password but no luck. I even tried disabling the local Windows XP firewall and they still get the same error. I then had them un-install the software, reboot, and re-install. No luck. :?
DanHarmer

Network Error - "Invalid Argument"

Hi there,

I have been using WinSCP3 for a long time from laptop and desktop computers. I have a new laptop and it was working, but then one day I got the above message when I tried to login. I have installed the latest version from your website and got the same message.

Please help! I hope this is an easy fix!

Dan Harmer
Servowatch Systems