Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No window showing on NixOs #47

Open
mschneiderwng opened this issue Apr 26, 2021 · 8 comments
Open

No window showing on NixOs #47

mschneiderwng opened this issue Apr 26, 2021 · 8 comments

Comments

@mschneiderwng
Copy link

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
Copy link

D3SOX commented Apr 26, 2021

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

@mschneiderwng
Copy link
Author

mschneiderwng commented Apr 26, 2021

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
Copy link
Author

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

@matzewolf
Copy link

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
Copy link

feijoas commented May 2, 2021

You can use my PR for rpiplay: NixOS/nixpkgs#121117

@fduncanh
Copy link
Contributor

fduncanh commented Aug 5, 2021

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

@fduncanh
Copy link
Contributor

fduncanh commented Aug 5, 2021

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

@timlinux
Copy link

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

uxplay -p

And then it should work through the firewall successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants