Configuring Sound on Linux/Pulse Audio/Remote server
RTP
editRTP streams use multicast IP adresses like 224.0.0.56 (default) and UDP datagrams for transport. Multicasts are generally not allowed in Internet (blocked by ISPs). RTP is designed for low latency.
Server
edit $ pactl load-module module-rtp-recv
Client
edit $ pactl load-module module-rtp-send
TCP
editOnly uncompressed audio is supported.
Configuring the Server
editThis process is rather simple. You will need to load module-native-protocol-tcp. You can optionally specify an auth-ip-acl to permit/blacklist anonymous connections from specific ips or IP ranges (to list more than one, separate by semicolon).
$ pactl load-module module-native-protocol-tcp auth-ip-acl=192.168.1.138
Configuring the Client
editSimply set the environmental variable PULSE_SERVER to the destination and PulseAudio will redirect the stream over tcp to the provided destination.
$ PULSE_SERVER=192.168.1.146 totem