NetXchanger is a versatile tool π οΈ for sending and receiving binary files over a network. This tool functions similarly to macOS's Airdrop, but does not limit to macOS devices. NetXchanger is a CLI tool, but also has a GUI version for Windows and macOS.
-
Plaintext Message Transfer: Easily send plaintext contents from one computer to another within the same network. (Only available in CLI version)
-
File Sharing: Quickly transfer files between computers without the need for USB drives or third-party websites like emails or messaging apps.
-
Local IP Retrieval: Conveniently find out your computer's local IP address without needing to run
ipconfig
orifconfig
. -
Cross-Platform Compatibility: Functions on any system with Python 3.x, enhancing versatility. (GUI version only works on Windows and macOS)
- Python 3.x installed on your system.
- Network connectivity between the computers involved.
- Download the latest release from the releases page depending on your operating system.
- Extract the contents of the zip file and run the executable.
- Clone the repository:
git clone https://github.com/sean1832/nx-cli.git
- Navigate to the source directory.
- Install the package:
pip install .
Run nx
from the terminal or command prompt using various commands to send or receive data.
Retrieve your computer's local IP address:
nx ip
π Note: Each computer's IP is unique. To send data, you need the IP of the receiving computer. Ensure both computers are on the same network.
To send a file:
nx post file RECEIVER_IP PORT_NUMBER FILE_PATH
Replace RECEIVER_IP
, PORT_NUMBER
, and FILE_PATH
with the appropriate values.
To receive a file:
nx get file PORT_NUMBER SAVE_DIRECTORY
Replace PORT_NUMBER
and SAVE_DIRECTORY
with the desired port and directory path.
.
can be used to save the file in the current directory.
To send a directory:
nx post file RECEIVER_IP PORT_NUMBER DIR_PATH -z
- Use
-z
to zip the directory before sending.
To send a message:
nx post msg --ip RECEIVER_IP --port PORT_NUMBER
To receive a message:
nx get msg PORT_NUMBER [-a]
- Use
-a
for anonymous mode, hiding the sender's IP.
-v
,--version
: Displays the current version of the application.
Contributions are welcome! Please follow the standard fork-and-pull-request workflow.
This project is licensed under the Apache License 2.0. See the LICENSE file for more details.