this post was submitted on 15 Jul 2024
4 points (100.0% liked)

Linux

47237 readers
3343 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

i want to share audio over network so that i can use my tv as a wireless speaker. so i chose obs studio to make a stream out of my system audio coz i had it installed already. i went to settings -> output (advanced) -> recording (custom) and set ffmpeg output to output to url and set the url to udp://192.168.43.87:8081 and set container format to mp3 just to get started. so to test things out i ran mpv udp://192.168.43.87:8081 on the same machine and it plays audio. but when i tried accessing it from my android phone with mpv client, it doesnt play the audio, it just shows black screen for while and return to main menu of mpv app. thanks in advance.


edit

iptables:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

iptable log when accessing the stream from my phone: here

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 2 months ago (1 children)

First obvious question: do you have a firewall enabled?

From a terminal, type "iptables -L" and if there are any rules there (rather than just category headers) you will probably need to allow inbound traffic through the firewall

[–] [email protected] 0 points 2 months ago* (last edited 2 months ago) (1 children)

thanks for help. i tried adding firewall rules to allow all udp connections (added my iptables output in the op), but no luck :(

[–] [email protected] 1 points 2 months ago (1 children)

Yeah your iptables is already set to up ACCEPT by default meaning no blocking.

My next step would be to determine whether the traffic is reaching the target machine. Look into how you can monitor inbound traffic and verify whether the server even sees the inbound connection attempt

[–] [email protected] 1 points 2 months ago (1 children)

yeah thats the first thing i wanted to check. im not a network expert but i think my phone tried connecting to my machine. on the log, SRC=192.168.43.60 is my mobile phones address, but I cannot confirm it was a success or not.

ive created a pastebin here just in case.

[–] [email protected] 1 points 2 months ago

There is no traffic on Port 8081 in those logs