Skip to content
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

Make listening IP and port configurable #16

Closed
Teteros opened this issue Jul 21, 2018 · 2 comments
Closed

Make listening IP and port configurable #16

Teteros opened this issue Jul 21, 2018 · 2 comments

Comments

@Teteros
Copy link

Teteros commented Jul 21, 2018

These two are hardcoded here: https://github.com/duncanthrax/scream/blob/master/Receivers/pulseaudio/scream-pulse.c#L14-L15

I've had to change the IP to 10.0.2.2 for my use case (Windows is a guest in a VM, Linux is QEMU host using user networking, guest itself isn't normally reachable.)

Rebuilding just to change these can be tricky and needs all the tooling of course.

@duncanthrax
Copy link
Owner

Hi @Teteros,

the driver uses a multicast target address, so any host on the same LAN segment should be able to pick up the stream. I don't want to support unicast because of the hassle of having to set up (and keeping track of) IP and Port settings. If multicast didn't work for you, there must a another reason.

/tom

@Teteros
Copy link
Author

Teteros commented Jul 23, 2018

I don't want to support unicast because of the hassle of having to set up (and keeping track of) IP and Port settings.

Makes sense, implementing this would also require some sort of config file somewhere or maybe reading windows registry values to know what IP:Port to listen on.

I'll close this then, I don't think handling above is implemented, and that would introduce more complexity indeed.

If multicast didn't work for you, there must a another reason.

Multicast is indeed sufficient for machines connected on the same LAN. It's own my niche use case where scream is running on a NATed Windows virtual machine that makes it more complicated.

Linux receiver has to listen on localhost/127.0.0.1 and scream connects to the the host/gateway. I believe ICMP packets aren't forwarded and multicast doesn't work since the guest is not reachable by the host in this setup.

The proper way to fix this for now is to bridge the VM to the host rather than use the user networking/SLIRP mode, it's either that or hardcoding hosts' IP in scream :)

@Teteros Teteros closed this as completed Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants