We have Server machine, this computer with Headphones, and we have Client computer, this is remote PC with music =) On Server we should first open port for listening connections from Client :
# on ubuntu
sudo ufw allow from <Client_IP> to any port 4656 proto tcp
# on fedora ( with firewalld )
sudo firewall-ctl --add-port 4656/tcp
note: port 4656 just for sample. you can use any port you want
than on Server, from current user add listening for connections
pactl load-module module-native-protocol-tcp port=4656 listen=<Server_IP>
then on Client add sink to remote Server
pactl load-module module-tunnel-sink server=tcp:<Server_IP>:4656
than, you should chose right output on Client, in KDE it looks like
you can use pavucontrol for this too
Update from comments :
maybe add anonynous authorisation helps (thanks to @raldone01)
pactl load-module module-native-protocol-tcp port=4656 listen=0.0.0.0 auth-anonymous=true
Hi, it is not working for me. I want to send audio from an Ubuntu machine with PulseAudio to an ArchLinux machine with PipeWire.
Steps:
On Ubuntu:
$ sudo ufw allow from
<ArchLinux IP address>
to any port 4656 proto tcpRule added
$ pactl load-module module-native-protocol-tcp port=4656 listen=
<Ubuntu IP address>
23
On ArchLinux:
$ pactl load-module module-tunnel-sink server=tcp:
<Ubuntu IP address>
:4656Connection failure: Connection terminated
What did I miss here?
$ nmap -Pn -p4656
<Ubuntu IP address>
Starting Nmap 7.93 ( https://nmap.org ) at 2023-04-08 23:42 -03
Nmap scan report for pc (
<Ubuntu IP address>
)Host is up (0.011s latency).
PORT STATE SERVICE
4656/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds