Stream all sound from host A to host B over network. Both hosts are running Ubuntu.
Install avahi and enable service on both hosts:
1 |
|
Install zeroconf module on both hosts:
1 |
|
Edit /etc/pulse/default.pa:
Server:
1 |
|
Client:
1 |
|
Don’t forget to check the firewall:
Restart service:
1 |
|
Should be able to see remote audio devices with the format <device name> on <user>@<hostname>
:
The playback uses around 1.4 Mbps bandwidth.
If the server listens on both IPv4 and IPv6, you may see a duplicated entry of the remote playback device.
In my case, I set the server listen to IPv4 to solve the problem.
PulseAudio over network - ArchWiki