3 ms·
Interesting! How do you go about binding an unused port on client machines?
by mafro 8y ago
Interesting! How do you go about binding an unused port on client machines?
- mholt 8y agoUse port :0 to let the OS choose one. But for now we just hard-code a port. I personally prefer this since it's easy to use and convenient to remember. But if a lot of client machines have conflicts, I guess we'll change that...
- piva00 8y agoWhy not just change that? You are already in the same host, you can write the port that the server bound to on startup to a file and just read that from the client. I've implemented something similar and went through the same stage "I will wait until someone complains" and they will happen, just prevent them right now :)