antimof / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.47k stars 200 forks source link

No window showing on NixOs #47

Open mschneiderwng opened 3 years ago

mschneiderwng commented 3 years ago

If I start uxplay I get the following message

GST_DEBUG=3 ./uxplay
0:00:00.036785296  5672       0xf9be40 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<video_source:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.041039828  5672       0xf9c060 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audio_source:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Initialized server socket(s)
*** WARNING *** The program 'uxplay' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>

I can see and select UxPlay on the iPad (same wifi network), but no window is showing and I get no further debug information about a connection on the console.

Any idea how to fix this? Does the firewall block something?

D3SOX commented 3 years ago

Possibly the same problem as in #46. Do you have the avahi-daemon started?

mschneiderwng commented 3 years ago

It seems to be running

sudo systemctl status avahi-daemon.service                                                                                    
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
     Loaded: loaded (/nix/store/yf1vczxfcvk5x6yjlrasifiyzmgn087h-unit-avahi-daemon.service/avahi-daemon.service; enabled; vendor prese>
     Active: active (running) since Mon 2021-04-26 11:22:04 CEST; 1s ago
TriggeredBy: ● avahi-daemon.socket
   Main PID: 20078 (avahi-daemon)
     Status: "Server startup complete. Host name is yoga.local. Local service cookie is 2814226944."
         IP: 2.0K in, 2.0K out
         IO: 156.0K read, 0B written
      Tasks: 1 (limit: 4915)
     Memory: 976.0K
        CPU: 11ms
     CGroup: /system.slice/avahi-daemon.service
             └─20078 avahi-daemon: running [yoga.local]

Apr 26 11:22:04 yoga avahi-daemon[20078]: Joining mDNS multicast group on interface wlp0s20f3.IPv4 with address 192.168.10.44.
Apr 26 11:22:04 yoga avahi-daemon[20078]: New relevant interface wlp0s20f3.IPv4 for mDNS.
Apr 26 11:22:04 yoga avahi-daemon[20078]: Joining mDNS multicast group on interface lo.IPv4 with address 127.0.0.1.
Apr 26 11:22:04 yoga avahi-daemon[20078]: New relevant interface lo.IPv4 for mDNS.
Apr 26 11:22:04 yoga avahi-daemon[20078]: Network interface enumeration completed.
Apr 26 11:22:04 yoga avahi-daemon[20078]: Registering new address record for fe80::f9f4:9fe3:15f1:2c61 on wlp0s20f3.*.
Apr 26 11:22:04 yoga avahi-daemon[20078]: Registering new address record for 192.168.10.44 on wlp0s20f3.IPv4.
Apr 26 11:22:04 yoga avahi-daemon[20078]: Registering new address record for 127.0.0.1 on lo.IPv4.
Apr 26 11:22:05 yoga avahi-daemon[20078]: Server startup complete. Host name is yoga.local. Local service cookie is 2814226944.

sudo tcpdump -v port 5353 shows some messages from my iPad.

mschneiderwng commented 3 years ago

It is a firewall problem. If I disable the firewall, uxplay works.

matzewolf commented 3 years ago

I have the same problem. The avahi-daemon is running and a tcpdump shows packages from the iPad. However, disabling the firewall doesn't help. Any ideas what could be the issue?

feijoas commented 3 years ago

You can use my PR for rpiplay: https://github.com/NixOS/nixpkgs/pull/121117

fduncanh commented 3 years ago

There is an updated UxPlay at pr #58, that includes an option for use with firewalls.

fduncanh commented 3 years ago

feijoas : The update pr #58 contains all that is in current RPiPlay plus more

timlinux commented 1 year ago

Just for clarity, with the udpdate above, you can run

uxplay -p

And then it should work through the firewall successfully.