421 Could not create socket, unable to query socket for used port

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
spyfox
500 Command not understood
Posts: 3
Joined: 2018-07-01 16:22
First name: Vaclav
Last name: Lakhno

421 Could not create socket, unable to query socket for used port

#1 Post by spyfox » 2018-07-01 17:05

Greetings.

I've come to this forum because i'm running out of ideas what to do to solve my situation.
Well... here it is. I'm using Filezilla FTP Server for almost 4 years without any major problems (there was, but it was misconfiguration from my side). Now, out of nowhere (I do not remember any major changes to my system, except someone tried portscan on my PC) FTP server can't make Passive Mode connection - it constantly prompts me with "421 Could not create socket, unable to query socket for used port".

Code: Select all

(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> Connected on port 21, sending welcome message...
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> 220 Hello
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> AUTH TLS
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> 234 Using authentication type TLS
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> TLS connection established
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> USER user1
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> 331 Password required for user1
(000006)01.07.2018 19:29:24 - (not logged in) (127.0.0.1)> PASS *****
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> 230 Logged on
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> PBSZ 0
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> 200 PBSZ=0
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> PROT P
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> 200 Protection level set to P
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> PWD
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> 257 "/" is current directory.
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> TYPE I
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> 200 Type set to I
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> PASV
(000006)01.07.2018 19:29:24 - user1 (127.0.0.1)> 421 Could not create socket, unable to query socket for used port.
(000006)01.07.2018 19:31:25 - user1 (127.0.0.1)> 421 Connection timed out.
(000006)01.07.2018 19:31:25 - user1 (127.0.0.1)> disconnected.
Before I came here I've tried many things.
1. Checked firewall and network - no reaction.
2. Tried to cheat system and firewall by renaming executables and placing them into other folder. Nothing.
3. Tried to change passive port range and make it bigger. Nothing.
REALLY ODD - I changed FTP port to listen from 21 to one from my passive range, it worked, but passive mode still not :(
4. Tried to extract executables directly from installer. Nothing.
5. Even tried to check source code and found line where program emits such message - ControlSocket.cpp 724

Please note - I'm doing everything only local, only 127.0.0.1, no internet, no network.

And then... 5. Tried other older version and... BINGO. Until version 0.9.38 - passive mode works, with the same port range, any configuration, in any folder and with any name.
I already don't know what to do next and make server to work like it was.

PS: my current version 0.9.60.2 on Windows 7 x64 Ultimate

PSS: sorry fro my bad English.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 421 Could not create socket, unable to query socket for used port

#2 Post by botg » 2018-07-02 06:55

There has to be a firewall blocking FileZilla Server.

spyfox
500 Command not understood
Posts: 3
Joined: 2018-07-01 16:22
First name: Vaclav
Last name: Lakhno

Re: 421 Could not create socket, unable to query socket for used port

#3 Post by spyfox » 2018-07-02 19:12

botg wrote:
2018-07-02 06:55
There has to be a firewall blocking FileZilla Server.
Ok, well... i have checked firewall (COMODO, if You want to know, Windows Firewall disabled) added executable to every possible except list and nothing. And I don't know how can be explained the fact that early versions (e.g. 0.6.33) works. What's big differences between them? I have checked change log and found something. Is it can be related to IPv6?

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 421 Could not create socket, unable to query socket for used port

#4 Post by botg » 2018-07-03 09:00

What happens if you for a test uninstall Comodo? (not disable, only uninstall removes the virtual device drivers)

spyfox
500 Command not understood
Posts: 3
Joined: 2018-07-01 16:22
First name: Vaclav
Last name: Lakhno

Re: 421 Could not create socket, unable to query socket for used port

#5 Post by spyfox » 2018-07-07 10:43

botg wrote:
2018-07-03 09:00
What happens if you for a test uninstall Comodo? (not disable, only uninstall removes the virtual device drivers)
For now I simply rolled back to version 0.9.37 (the last one that working for me). Well... have the idea that I need to at least reinstall COMODO, but not now, I need to prepare for this 'cause it can crash whole system. And I think there is something more then only one program. For now I am also preparing for trying to compile and debug FTP server by myself. Maybe I will find something, who knows...

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 421 Could not create socket, unable to query socket for used port

#6 Post by botg » 2018-07-07 14:24

That old version is insecure, you have to update to the most recent version.

Post Reply