Connect GoPro via second router

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Advanced Networking
Author Message
nero.six
DD-WRT Novice


Joined: 07 Feb 2014
Posts: 2

PostPosted: Fri Feb 07, 2014 21:23    Post subject: Connect GoPro via second router Reply with quote
Hello,

as I spent a lot of time searching for a solution, and did not succeed I turn to this forum as a last chance how to solve this.
I tend to believe the solution is simple, but I did not manage to find it until now.

The players of my story are as follows:
- main router: TP-Link WR1043ND running dd-wrt
- secondary router: Asus WL-520GC running dd-wrt micro
- GoPro Hero3 camera with wifi support

As you might have guessed already, I would like to stream video from the GoPro through the secondary router to the clients connected to the main router.
The reason is simple: the GoPro supports AP mode only, so I can not connect it to the main router directly.

Config is:
TP-Link (main):
WAN IP 94.x....
LAN IP 192.168.1.1
AP mode
Gateway

Asus (secondary):
LAN port 4 is set up as WAN port, using these:
nvram set vlan0ports="1 2 3 5*"
nvram set vlan1ports="0 5"
nvram set vlan2ports="4 5"
ifconfig vlan2 up 192.168.1.21 netmask 255.255.255.0
WAN IP (assigned to port 4): 192.168.1.21
LAN IP 10.5.5.11
Client Bridge mode - set up to connect to GoPro AP

GoPro AP
has IP 10.5.5.9
video stream reachable on port 8080

So I have this constellation:

GoPro 10.5.5.9
^
| -wireless
v
Asus router IP 10.5.5.11
Asus/Lan4 (192.168.1.21)
^
| -wired
v
TP-Ling/Lan1 192.168.1.21
TP-Link router IP 192.168.1.1
^
| -wireless / wired
v
Notebook (192.168.1.123)

I would like to reach the top (the GoPro) from the bottom (Notebook)

Now what works and what doesnt:

a) When connected to the main TP-Link as client (notebook), i.e. being on the subnet 192.168.1.0:
- I can reach the secondary Asus router by pointing the browser to 192.168.1.21, also via telnet
- I tried to set up port forwarding of port 8080 on the Asus (tried both IPs 192.168.1.21 also with 10.5.5.11) to aim at the GoPro (10.5.5.9:8080) but it doesnt work.. I can not reach the GoPro. I also tried to forward some other port (not 8080, to avoid possible conflict with the remote web administration) directly to 10.5.5.9:8080 - also without success.

b) When connected directly to the secondary router (Asus) via cable, i.e. being on the subnet 10.5.5.0:
- I can reach the secondary router on 10.5.5.11
- I can ping the GoPro at 10.5.5.9
- also can stream video from 10.5.5.9:8080

I believe it must be som simple thing, which however somehow escapes my attention.
I would guess its an iptables command or something similiar.. maybe an additional route setting..

I will be thankful for any support you can provide me on this.

Kind regards,
nero
Sponsor
nero.six
DD-WRT Novice


Joined: 07 Feb 2014
Posts: 2

PostPosted: Sat Feb 08, 2014 8:39    Post subject: Reply with quote
Hi eibgrad,

it does work exactly according to your instructions.
THANKS!

Moreover, it is much more simple than I thought, because I was not aware that I can connect the two routers having both in the same subnet and also did not realize that I can access another subnet directly by adding a static route (that is why I was trying to create a wan on the second router etc..)
This happens when someone gets networking experience just by trial and error Smile

I think it would help me to attend a training on networking basics.

Thank you very much, you made my day nicer, really.
All the best,
nero
surfsnowpro
DD-WRT Novice


Joined: 05 Oct 2014
Posts: 1

PostPosted: Sun Oct 05, 2014 2:46    Post subject: Reply with quote
I'm trying to do the same thing, but I'm not sure how to configure my router for Client mode. I have a Netgear N600 WNDR3400. Any help would be appreciated
ctrl-alt-mat
DD-WRT Novice


Joined: 15 Jun 2015
Posts: 1

PostPosted: Mon Jun 15, 2015 16:43    Post subject: Reply with quote
eibgrad wrote:
Unless you’re trying to accomplish more here than meets the eye, you seem to be making this way too complex, esp. wrt the second router.

Just configure the second router in “client” mode (which will disable its WAN, you can reassign it to the LAN if you want) and connect its wireless client to the GoPro AP. On the LAN side of that router, disable its DHCP server and assign it a LAN ip on the same network as the primary router. Finally, add a static route to the primary router that points to that gateway as the route to the GoPro device.

Destination: 10.5.5.9
Subnet Mask: 255.255.255.255
Gateway: <lan-ip-of-client-mode-router>



Hi eibgrad and others, thanks a bunch for this tip. I've followed thses instructions and setup my secondary router WRT54G v6. Looking at the "wireless status" page, it looks to be properly connected to the GoPro AP. Then, following the instructions, I've added this "static route" to my secondary router (192.168.2.2):

Destination: 10.5.5.9
Subnet Mask: 255.255.255.255
Gateway: 192.168.2.2

Unfortunately, I can't access http://10.5.5.9:8080 (to grab the m3u8 "live" stream) within a browser, what am I missing? How can I "use" the static route to connect to 10.5.5.9 if my LAN is using the 192.168.2.1 gateway?

Thank you for your time and support,

Regards,

ctrl-alt-mat
CameraUser999
DD-WRT Novice


Joined: 18 Mar 2018
Posts: 5

PostPosted: Sun Mar 18, 2018 16:12    Post subject: Reply with quote
I have the same scenario like nero.six and thanks to eibgrad's instructions I can now access my camera's web-interace (Hero 4 Silver, IP 10.5.5.9) from every device in my main router's network (192.168.178.x).
However, I have an issue with the livestreaming from the camera. After livestreaming is activated on the camera, it sends out a udp-stream under the following address: udp://10.5.5.9:8554
I'm only able to receive this udp-stream from devices that are directly connected to the cameras wifi, not from devices that are in the main routers network. I guess there might be a problem with the 8554-port not being forwarded, but I'm not sure where to make the right settings to change this (main or secondary router?). Any help would be appreciated, thank you!

Here is my configuration:

Main router:
LAN IP 192.168.178.1
DHCP activated

Secondary router (Asus WL-520GC with d-wrt micro):
Client Mode, DHCP not activated
WAN IP 10.5.5.100 (wifi connected to camera)
LAN IP 192.168.178.62 (LAN connected to main router)

Static route configured in main router:
Destination: 10.5.5.9
Subnet Mask: 255.255.255.255
Gateway: 192.168.178.62
CameraUser999
DD-WRT Novice


Joined: 18 Mar 2018
Posts: 5

PostPosted: Sun Mar 18, 2018 18:05    Post subject: Reply with quote
Thanks for the quick reply. I tried the command, but unfortunately it didn't solve the problem, I'm still not able to receive the udp-stream...
CameraUser999
DD-WRT Novice


Joined: 18 Mar 2018
Posts: 5

PostPosted: Wed Mar 21, 2018 17:34    Post subject: Reply with quote
I just disabled the SPI Firewall (Security --> Firewall --> Firewall Protection --> SPI Firewall) and now the udp-stream shows up under "Active IP connections" (see the attached picture: Source Address 10.5.5.9, Remote Address 10.5.5.100, Service Name 8554, State UNREPLIED). This connection is not shown if the SPI Firewall is enabled.

However, I'm still not able to receive the udp-stream from my main router's subnet (192.168.178.x). I also directly connected my PC to the client mode router, but this works neither:

Asus WL-520GC with dd-wrt micro: Client Mode, DHCP activated
WAN IP 10.5.5.100 (wifi connected to camera 10.5.5.9)
LAN IP 192.168.178.62 (LAN connected to PC, PC-IP 192.168.178.115)

It seems that the udp-stream is only available on the WAN-side of the client mode router, but not in the other subnet on the LAN side. Are there any ways to solve this issue, maybe with static routes or port forwarding?
CameraUser999
DD-WRT Novice


Joined: 18 Mar 2018
Posts: 5

PostPosted: Wed Mar 21, 2018 18:49    Post subject: Reply with quote
Thanks a lot for the support so far, we are really getting closer to the solution! By now I managed to make the live stream work for specific clients! :-)
I connected the secondary client mode router back to the main router and with port forwarding I'm now able to forward the udp-stream to any specific device in my main routers network. This is the current configuration:

Main router:
LAN IP 192.168.178.1
DHCP activated
Static route configured in main router:
Destination: 10.5.5.9
Subnet Mask: 255.255.255.255
Gateway: 192.168.178.62

Secondary router with dd-wrt micro:
Client Mode, DHCP not activated
WAN IP 10.5.5.100 (wifi connected to camera 10.5.5.9)
LAN IP 192.168.178.62 (LAN connected to main router)
Port Forwarding Rule:
Port from: 8554, Protocol: UDP, IP Address: e.g. 192.168.178.115, Port to: 8554

So now the last issue to solve is how to make the stream not only available to one specific but to all clients on the network.
CameraUser999
DD-WRT Novice


Joined: 18 Mar 2018
Posts: 5

PostPosted: Thu Mar 22, 2018 17:53    Post subject: Reply with quote
Thank you for the detailed instruction!! I only have 2-3 clients, so the provided solution is absolutely sufficient for my case. Unfortunately, my current primary router doesn't run DD-WRT, but I'm thinking about replacing it to make the whole thing work.
Display posts from previous:    Page 1 of 1
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum