Trouble Connecting to FTP Server on Android Smartphone

6,344

Solution 1

Had to include the username, password, AND port number in the command:

C:\Windows\system32>ftpuse x: 192.168.1.7 mypass /USER:myusername /PORT:7272
Connecting...
Connected.
The operation completed successfully

Solution 2

Looks like the server isn't configured to allow this on the device. Once installed you need to start the FTPd service via the app which should open the correct port of which your client needs to bind to. Or some firewall is blocking it.

Solution 3

So, here is what you can do to troubleshoot the issue..

On your Windows install, install the telnet client ( Control Panel > Programs and Features > Turn Windows Features On/Off > Enable (check) telnet client from the list )

After you have the client installed, open a command prompt and type the following

telnet hostname.ftpsite.com 21

the telnet command will try to connect to hostname.ftpsite.com (replace this with the ftp hostname you are trying to connect to) on port 21 (which is the standard FTP port). If FTP is running as a server on port 21 at hostname.ftpsite.com, you will get back a status message. This tells you that FTP is indeed running on port 21 at the given host.

Here is an example

enter image description here

220 is a standard FTP response that essentially means everything is OK.

Another option would be to install nmap for windows, and scan your android phones IP address or hostname like this

nmap -vv -A xxx.xxx.xxx.xxx

Replace xxx.xxx.xxx.xxx with the ip address or hostname of your device. This will scan your device with verbose output, and will scan all common ports on the device. This will give you a good idea of what services are being offered on what ports on your android device.

Share:
6,344

Related videos on Youtube

Jim Fell
Author by

Jim Fell

Technical expertise resides in developing firmware and PC-interface software for embedded systems using C/C++/C# programming languages, integrated development environments, and low-level debugging techniques. I enjoy developing embedded and PC drivers for wired communications. Previous work focused on the development of firmware for USB, CAN, SPI, RS-232, RS-485, ZigBee, and analog drivers, as well as implementing low-power embedded solutions across a broad range of embedded and desktop platforms.

Updated on September 18, 2022

Comments

  • Jim Fell
    Jim Fell over 1 year

    I do hope that I'm asking this in the correct community; the question, I think, has mostly to do with network topology.

    I'm trying to use FTPuse to setup a volume letter to my Android smartphone, but I keep getting this error:

    C:\Windows\system32>ftpuse x: 192.168.1.7
    Connecting...
    Socket Error # 10061
    Connection refused.
    

    Different permutations of the command, such as including the username and password, have made no difference. The Windows 7 desktop that I'm working from is connected to the network via ethernet:

    PC <--> Switch <--> Vonage box <--> Cable modem/router/WiFi access point <--> Android smartphone
    

    I can ping the FTP server without any problems, and I'm trying to get this working as per this suggested answer in the Android community.

    Any thoughts or suggestions are greatly appreciated.

    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 about 10 years
      Did you setup an FTP server on your Android device yet? If so, can you connect to it via a standard FTP client from the PC?
    • Jim Fell
      Jim Fell about 10 years
      Yes, an FTP server is configured on my Android device.
    • Ƭᴇcʜιᴇ007
      Ƭᴇcʜιᴇ007 about 10 years
      And you can access it from a standard FTP client from the PC? If not, can you access it from an FTP client on the phone itself? The point is it seems like your FTP server may be configured incorrectly, but you have not provided information regarding it.
    • Jim Fell
      Jim Fell about 10 years
      Adding the port number to the FTPuse command seemed to fix the problem. Thanks, everyone, for your help! :D
  • Jim Fell
    Jim Fell about 10 years
    What do you mean? More details would be nice.
  • Steve Reeder
    Steve Reeder about 10 years
    Yep, connection refused usually means exactly what it sounds like - either the FTPd service is not running on the device or some firewall is blocking it.
  • Ben Lavender
    Ben Lavender about 10 years
    Yes, once installed you need to start the FTPd service via the app which should open the correct port of which your client needs to bind to
  • Steve Reeder
    Steve Reeder about 10 years
    Yeah, those details are usually pretty important! :)
  • Jim Fell
    Jim Fell almost 10 years
    Yeah, it was the missing port number that got me.