Find your local IP: ifconfig | grep "inet " or ipconfig
Check if port 8080 is in use: lsof -i :8080
Start the Rust server: cargo run
Update Flutter client connection: _socket = await Socket.connect("YOUR_IP_HERE", 8080);
Make sure both devices are on the same Wi-Fi.
If connection times out:
- Try another port (e.g. 5000)
- Check firewall settings
- Ensure server is running and reachable
Test manually: nc YOUR_IP_HERE 8080
This project demonstrates sending and receiving TCP messages between multiple clients.