cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up a Broadcast channel

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

How to set up a Broadcast channel

Hi

I have a device (Raspberry Pi) that streams video out to my network but in order for it to work I have to tell it the IP address of the receiving device. This is a pain because I don't always want to receive the video on the same deveice.

I have been told I can set the router to stream it to ALL deveices ?  If so, how do I set it up ?

I have a Plus One router.

 

Many thanks

 

Squelch

16 REPLIES 16
Anonymous
Not applicable

Re: How to set up a Broadcast channel

Hi @Squelch, Welcome to the Forum.

The term 'broadcast', by definition, means just that. A TV program is broadcast and anyone with the right equipment can pick it up, the broadcaster does not know or care to what 'address' the program is being broadcast to. So I have to ask have are you using the correct terminology here?

 

Anonymous
Not applicable

Re: How to set up a Broadcast channel

@Squelch P.S. If you IP address is the range 192.168.1.0 then the Broadcast Address for that is 192.168.1.255

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

Hi when I say Broadcast I mean I wnat to set the Raspberry pi to stream to all the IP address on the network and not just one.

For instance, I want to watch the output from the Raspberry Pi RP on my laptop which has the ip address of 192.168.1 68 so I configer the RP to send to that address. But I also want to receive it on my tablet which has an IP address of 192.168.1.45. The only way I can watch it on the tablet is to change the config on the RP which is a pain. 

So what I need is to either set the router to send it to all the ip address in the 192.168.1 range or tell the RP to send to all the IP address.

 

Squelch

Anonymous
Not applicable

Re: How to set up a Broadcast channel

OK @Squelch in that case use the broadcast address from above, that will allow you to pick it up on any device on the LAN.

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

Hi

 

Thanks I will give it a go.

 

Squelch

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

Hi

 

No, sorry it does not work. I set it to stream on 192.168.1.255:1234  and  set VLC to UDP://@

Nothing, it works when I send it to the devices own IP address.

 

Squelch

Anonymous
Not applicable

Re: How to set up a Broadcast channel

What product is it you're using?

Your router doesn't come in to it here, the broadcast address should be set on the software running on the Pi is this what you did above?

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

Hi

I think I should be using the term Multicast and not broadcast.

Anonymous
Not applicable

Re: How to set up a Broadcast channel

Remember that Multicast Addresses are Class D and in a specific range of 224.0.0.0 to 239.255.255.255 with some reserved for special use.

Edit: If you have an option to set the TTL set it to 1 so the packets don't leak out of your network.

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

The sending device is the Raspberry pi which I set up to send 192.168.1.255 but my tablet will not receive anything.

The tablet's address is 192.168.1.67 which has been set by the router.

The only way to receive is to set the pi to send to 192.168.1.67 then it works fine. But as I cannot have two devices with the same address I cannot send it the the laptop.

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

If I send the stream out on 239.X.X.X then how will they reach the devices on 192.168.1.x ?

Surly if I give the devices static address in the 239 range then they will not connect to the internet.

 

Anonymous
Not applicable

Re: How to set up a Broadcast channel

From what you are describing in message 11 above you are using Unicast, so in order to view the same feed on multiple devices you need to use either Broadcast or Multicast.

If you use Multicast you need to 'subscribe' to the the Multicast group or channel, so it looks like Broadcast is what you want.

But without knowing what software it is you are using on the Pi Server and the receiving client then there's not much else I can say to be honest.

These packets don't need to connect to the Internet as they should be constrained to your LAN.

Have a look as this:

Multicast Sender on LinuxMulticast Sender on Linux

 

Multicast Reciever on WindowsMulticast Reciever on Windows

 

Anonymous
Not applicable

Re: How to set up a Broadcast channel

@Squelch - Have you made any progress on this? If you're still needing help then please post back.

P.S. If the code to my Multicast Sender / Receiver is of any use to you (or anyone) just say and I'll post it here, there's not much to it really.

 

Squelch
Hooked
Posts: 9
Thanks: 1
Registered: ‎22-10-2019

Re: How to set up a Broadcast channel

No, sorry, still no joy. I do not have access to the code that sends the stream so I cannot change the code.