Chromecast rule

Bug #1781775 reported by costales on 2018-07-15
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Wishlist
costales

Bug Description

To use chromecast from VLC 3 I have to disable UFW. Can anyone tell me how to add a rule so I don't have to disable/enable ufw each time I want to stream something from my laptop to my tv.

Related branches

costales (costales) wrote :

Hi,
Could you check if these are the ports needed:

Chromecast connecting to external services:
HTTP: TCP/80
HTTPS: TCP/443
DNS: UDP/53
SNTP: UDP/123

Chromecast communicating with computer/phone/tablet in the same network:
SSDP: UDP/1900/multicast
mDNS: UDP/5353/multicast
TCP/8008
TCP/8009

Thanks in advance!

Changed in gui-ufw:
importance: Undecided → Wishlist
assignee: nobody → costales (costales)
status: New → Triaged
slumbergod (slumbergod) wrote :

I'm attempting to test your proposed settings but I haven't written rules before so it will take me a while to work it out.

I did find this link for iptables which might be of use:
https://blog.g3rt.nl/allow-google-chromecast-host-firewall-iptables.html

slumbergod (slumbergod) wrote :

No luck so far. I've tried lots of combinations but it isn't streaming. Even without adding any rules at all, VLC sees ChromeCast under Renderer. It starts to establish a connection but streaming fails.

I even looked at the inbound and outbound rules on a windows 10 machine but that firewall seems to just allow everything to give VLC permission.

Curiously, I cannot find any official specs from Google about ports. I'll keep searching and experimenting.

But, are you using Gufw?

slumbergod (slumbergod) wrote :

Yes, I was trying to add "simple" rules through the GUFW interface. I
probably just need to keep experimenting. I've always relied on the
built-in rules so I've never needed to add one. I'm probably making a
mistakes with:
- multicast entries
- whether to allow in or out or both

On Sun, 15 Jul 2018 at 12:25, costales <email address hidden> wrote:

> But, are you using Gufw?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1781775
>
> Title:
> Chromecast rule
>
> Status in Gufw:
> Triaged
>
> Bug description:
> To use chromecast from VLC 3 I have to disable UFW. Can anyone tell me
> how to add a rule so I don't have to disable/enable ufw each time I
> want to stream something from my laptop to my tv.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gui-ufw/+bug/1781775/+subscriptions
>

--
*David Scott*, BSc BA

instantkarma (instantkarma) wrote :

first you need to check the HTTP port that vlc is using (for me it was 8010)...

open vlc > tools > preferences > select "all" (at the bottom) > stream output > stout stream > chromecast > HTTP Port = ????.

open gufw,
click "+" to add a new rule,
"Advanced" tab,
"Name" = VLC Chromecast
"Policy" = Allow,
"Direction" = Both
"Protocol" = TCP
"To / Port" = <add your port number here>.
clicked on "Add" then "Close".

Alternatively you could assign a static IP to your chromecast's MAC address via your router's set up page...

then open gufw,
click "+" to add a new rule,
"Advanced" tab,
"Name" = Chromecast,
"Policy" = Allow,
"Direction" = Both,
"Protocol" = TCP
in the "From" field, enter EG: 192.168.1.6,
clicked on "Add" then "Close".

instantkarma (instantkarma) wrote :

I consider the second approach I gave much better than the first.

Works for me.

costales (costales) on 2019-05-01
Changed in gui-ufw:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions