Laner is a fast and secure file-sharing application that allows seamless file transfer between your PC and phone and vice-verse over a local network. Here's how to use both the desktop and phone versions effectively:
-
Launch the App: Open the Laner desktop application on your PC.
-
Connect to a Local Network:
- Make sure your PC is connected to a local network or hotspot.
- Internet access is not required.
-
Start the Server:
- Click the Start Server button.
- The app will display your local server address (IP code).
- This code will be used to connect your phone to the desktop.
-
Server Status:
- The status label will show "Server Running" once the server starts.
- Avoid sharing the displayed code with unauthorized users.
-
Optional:
- Use the Hide Code button to conceal the IP address for privacy.
- Click End Server to stop hosting files.
- The app runs in the system tray when minimized.
- Right-click the tray icon to access:
- Show: Reopen the app.
- Quit: Close the app entirely.
-
Install and Open the App: Launch the Laner app on your phone.
-
Enter the Server Code:
- Navigate to the Link tab.
- Input the server code (IP address) displayed on the desktop app.
-
Verify Connection:
- If successful, the app will display the file system from your PC.
- If not, ensure both devices are on the same network.
- Browse Files:
- Use the grid layout to explore the folders and files hosted on your PC.
- Download Files:
- Tap the Download button on a file card.
- Files are saved in the
Downloads/Laner
folder on your phone.
-
Select Files to Upload:
- Tap the Upload button in the app.
- Choose files from your phone’s storage.
-
Transfer Files:
- The selected files are uploaded to the current folder on your PC.
Managing Hidden Files
- To view hidden files on your PC, enable the Show Hidden Files option in the phone app's Settings tab.
- Ensure both devices are connected to the same Wi-Fi or hotspot.
- Restart the desktop server if the connection fails.
- Grant necessary permissions on the phone app (storage access, notifications).
No, Laner works entirely over a local network. Both devices must be connected to the same Wi-Fi or hotspot.
All downloaded files are stored in the Downloads/Laner
folder on your phone.
Click the End Server button in the desktop app. This stops hosting files and ends the connection.
- Ensure both devices are connected to the same local network.
- Verify the IP address (code) shown on the desktop app matches the one entered on your phone.
- Restart the desktop server or your router if necessary.
Yes, hidden files can be excluded by default. Use the Show Hidden Files toggle in the phone app's settings to control this.
The desktop app runs in the system tray. You can reopen it by right-clicking the tray icon and selecting Show.
Yes, use the Upload button in the phone app to select files for upload. Files will be saved to the desktop folder on your PC.
Yes, but ensure both devices have sufficient storage space and a stable connection for large files.
-
Running in Background
- The desktop app can continue serving files while minimized to the system tray. Use the tray menu for quick controls.
-
Using a Static IP Address
- If your network assigns dynamic IPs, the server address might change. Configure a static IP on your router for consistency.
-
Customizing Themes
- Laner supports dark and light themes. Switch between them via your phone's system theme settings.
-
Default Download Location
- Downloads are saved in
Downloads/Laner
. If needed, you can modify this path in the app code by updating themakeDownloadFolder()
function intemplates.py
.
- Downloads are saved in
-
Offline Mode
- While the app doesn't require the internet, you can use a phone hotspot with no data plan to create a local network.
-
Extending Functionality
- Laner is open-source. You can add features like file previews, password-protected sharing, or multi-user support by extending its existing codebase.
-
Changing the Default Port
- By default, Laner uses port
8000
for the server.
- By default, Laner uses port
-
To scan a list of ports and use the first available one, update the
run_server()
method in the desktop app's main file:ports = [8000, 8080, 9090] # List of ports to scan for port in ports: try: # Attempt to start the server on the current port self.server = FileSharingServer(port, '/') self.server.start() # Start the server print(f"Server running on port {port}") break # Exit the loop if the server starts successfully except OSError: print(f"Port {port} is unavailable, trying the next one...") else: print("All specified ports are in use. Please free up a port and try again.")
-
This ensures the server scans through a list of ports (
8000
,8080
,9090
, etc.) and uses the first available one. If no port is available, an error message will be displayed.
- Contributing to Laner
- Fork the project repository, make your changes, and submit a pull request for review.