Cách chạy máy chủ FTP trên Android

Cách chạy máy chủ FTP trên Android

Cập nhật lần cuối :

Biến Android của bạn thành Máy chủ FTP

Máy chủ FTP tích hợp của AnExplorer cho phép điện thoại của bạn hoạt động như một máy chủ tệp trên mạng Wi-Fi cục bộ của bạn. Bất kỳ máy tính nào — Windows, Mac hoặc Linux — đều có thể kết nối bằng ứng dụng khách FTP tiêu chuẩn và duyệt bộ nhớ điện thoại của bạn mà không cần cáp USB hoặc ứng dụng bổ sung trên máy tính.

Điều này nhanh hơn và linh hoạt hơn so với việc sử dụng USB để truyền số lượng lớn. Hướng dẫn liên quan: cách chuyển tệp từ Android sang PC.

Cách khởi động máy chủ FTP

  1. Mở AnExplorer
  2. Nhấn vào ≡ menu hoặc vuốt từ thanh bên trái
  3. Chọn Máy chủ FTP
  4. Nhấn vào Bắt đầu — máy chủ khởi động và hiển thị cho bạn một URL như ftp://192.168.1.105:2221
  5. Lưu ý địa chỉ IP và cổng hiển thị

Máy chủ FTP chỉ chạy khi AnExplorer đang mở và màn hình bật (hoặc khi ứng dụng đang chạy ở chế độ nền). Nó tự động dừng khi bạn đóng ứng dụng.

Kết nối từ PC Windows

Tùy chọn A — Windows File Explorer:

  1. Mở File Explorer
  2. Trong thanh địa chỉ, gõ: ftp://192.168.1.105:2221 (sử dụng IP hiển thị trong AnExplorer)
  3. Chấp nhận kết nối - nếu được nhắc nhập tên người dùng và mật khẩu, hãy sử dụng thông tin xác thực được đặt trong AnExplorer (mặc định: không có thông tin xác thực trên mạng cục bộ)
  4. Bộ nhớ điện thoại của bạn xuất hiện dưới dạng một thư mục

Tùy chọn B — FileZilla (ứng dụng khách FTP miễn phí):

  1. Tải xuống FileZilla từ filezilla-project.org
  2. Mở FileZilla > Tệp > Trình quản lý trang > Trang web mới
  3. Giao thức: FTP, Máy chủ: 192.168.1.105, Cổng: 2221
  4. Kiểu đăng nhập: Bình thường, nhập tên người dùng/mật khẩu nếu được cấu hình
  5. Kết nối - các tập tin điện thoại xuất hiện ở bảng bên phải

Tùy chọn C — Dòng lệnh:

ftp 192.168.1.105 2221

Connecting from a Mac

Option A — Finder:

  1. Finder > Go > Connect to Server (⌘K)
  2. Type ftp://192.168.1.105:2221
  3. Click Connect — Finder mounts the phone as a disk
  4. Drag files to copy them

Option B — Cyberduck (free): Cyberduck is a reliable free FTP client for macOS with a clean drag-and-drop interface. Download at cyberduck.io, create a new connection using the FTP server URL, port, and credentials.

Connecting from Linux

Most Linux file managers (Nautilus, Dolphin, Thunar) support FTP browsing natively:

  • Nautilus: Open Files app > Other Locations > type ftp://192.168.1.105:2221
  • Dolphin: Address bar > ftp://192.168.1.105:2221
  • Terminal: ftp 192.168.1.105 2221 or use lftp for full-featured FTP client

FTP Server Settings in AnExplorer

SettingDefaultWhat it does
Port2221Change if port 2221 is blocked; common alternatives: 21, 2020
Username(blank)Add a username to restrict access
Password(blank)Require a password for all connections
Root directoryInternal storageRestrict FTP access to a specific folder
Anonymous accessOnAllow connections without credentials
Require loginOffTurn on for shared-network security

Tip: On a private home Wi-Fi network, anonymous access is generally fine. If you're on a shared network (office, apartment, hotel), always set a password.

Security Considerations

The FTP protocol itself does not encrypt connections. Anyone on the same Wi-Fi network can technically intercept the connection. For a home network this is acceptable. For shared/public Wi-Fi it is not.

For encrypted transfers, use AnExplorer's SFTP or WebDAV options instead. Both support TLS/SSH encryption.

FTP Server vs Device Connect

AnExplorer also offers Device Connect — an HTTP-based server that lets you browse and download files from any browser without any FTP client software. If the person you're sharing files with doesn't have an FTP client, Device Connect is simpler.

FTP ServerDevice Connect
Requires FTP client on computer❌ (any browser)
Upload from computer
Download to computer
Encryption❌ (FTP)❌ (HTTP)
Works with FileZilla, Finder, Cyberduck
Works in Android TV / Chromebook browser

Port Blocking Issues

Default router settings rarely block port 2221 on LAN. If you see "connection refused":

  1. Check that AnExplorer's FTP Server is actually running (visible in notification bar)
  2. Try changing the port to 21 trong cài đặt Máy chủ FTP
  3. Kiểm tra tính năng tối ưu hóa pin của Android - chế độ pin quá mạnh có thể giết chết máy chủ
  4. Trên một số thiết bị Android 12+, hãy luôn bật màn hình hoặc đặt khóa chế độ thức một phần

Hướng dẫn liên quan

Cài đặt

Cài đặt AnExplorer

Câu hỏi thường gặp

Bản quyền © DWorkS 2011 – 2026 Mọi quyền được bảo lưu