-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option for forcing port to listen on #91
Comments
Runtime flag to be added
|
This has been requested a few times, we should implement this as it's pretty trivial to do so. Runtime flag of |
In addition to allowing specification of the port to listen on, librespot should not die if it fails to open that port. IMHO an error message logged should be good enough. (adding "mdns" to this comment as I keep searching for it and don't find this report :-)) |
mdns is implemented using @plietar's own https://github.com/plietar/rust-mdns. I tried to change port by changing the hard-coded value in there to 5354. Unfortunately the Spotify client would no longer see it, as if it was expecting the service to run on 5353 and nothing else. |
Implemented with the |
Saturday Sep 23, 2017 at 11:11 GMT
Originally opened as plietar/librespot#253
Currently, librespot listens on 5353 and a random port. This makes running it on a pc with firewall difficult. It would be nice if there was an option to select a specific port instead.
I've never programmed in rust before, so I haven't made a PR for it. Currently locally I solved it by simply putting my port instead of 0 in the following piece of code:
TcpListener::bind(&"0.0.0.0:0".parse().unwrap(), handle)?;
.The text was updated successfully, but these errors were encountered: