send and receive message and file by python3 socket.
You could use a sample cli tool on it, could also invoke the methods in your project.
Could you please click ⭐ if my code help you? Thank you.
You should modify config.json.
- local_ip: Your local address IP. (essential && important)
- receive_port: Config the ports to receive files or messages.You must make sure that the receiver and sender have configed same ports.
- save_position: The position you want to save the files to.
help get help message.
This program could receive message and file automatically.
send <ip> -m <message> send a message to target IP
send <ip> -f <filename> send a file to target IP
quit quit this program safety