xbmc remote and different subnet
#1
Image
This is my network setup.

My network settings are:

eth0 Link encap:Ethernet
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0

eth1 Link encap:Ethernet
inet addr:10.42.0.1 Bcast:10.42.0.255 Mask:255.255.255.0


I want to use the xbmc remote app. The settings in xbmc on the AppleTV are right, because I can connect with my PC to http://10.42.0.52:8080/ and use the webinterface like a remote. The problem is that I can't connect with the xbmc remote app on my phone.

I guess the problem lies in the fact that the IP address of the AppleTV is 10.42.0.52, the IP address of my PC is 192.168.1.65 and the IP address of my iPhone is 192.168.1.69.
I can SSH into the AppleTV since it has Crystalbuntu. Should I add a static route on the AppleTV and what route should that be?




Reply
#2
You have to make your Computer to route between both subnets. The following static routes are needed then.

On your Router:

10.42.0.0/24 via 192.168.1.65

On your AppleTV

192.168.1.0/24 via 10.42.0.1

That said i assume that the DSL/Modem is a router and is the default router for your iPhone.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
On my Modem/Router I entered this under static routering:

Destination address:
10.42.0.0

Default gateway:
192.168.1.65

Subnetmask:
255.255.255.0

Interface :
WAN2_INTERNET_TR069_VOICE_R_PTM3_0_1_0

And on my AppleTV:
Code:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.42.0.1

I didn't work so far. What did I do wrong?
Reply
#4
That would work if the 192.168.1.65 was a router but being a computer you need to make that computer to route from the 192.168.1.0 subnet to the 10.42.0.0 subnet. Otherwise its just going to drop the packets.
Reply
#5
You really should consider letting your router do the routing on your network. But Knight2k is correct, you'll need to enable routing (IP Forwarding in non-standard MS speak) on the PC between the interfaces and also open any firewall settings to allow the traffic through.

Here is what google came up with... I have not tried it (again I would highly recommend just using your router).
http://www.coretimer.com/windows/ip-forw...-a-router/
Reply
#6
(2012-06-21, 15:50)Memphiz Wrote: You have to make your Computer to route between both subnets. The following static routes are needed then.

That was what i was trying to say with this statement ... since i don't know what operating system is running on that computer i can't tell you howto setup the routing.

If it linux "echo 1 > /proc/sys/net/ipv4/ip_forward" should activate routing. If you have setup iptables on that rig you have to allow forwarding for the 2 involved interfaces.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#7
It's Ubuntu 12.04.

When I try "sudo echo 1 > /proc/sys/net/ipv4/ip_forward" it says: "bash: /proc/sys/net/ipv4/ip_forward: Permission denied"
When I open the file it has got only an 1 in it.

I tried this "route add -net 10.42.0.0 netmask 255.255.255.0 gw 192.168.1.0" in terminal.
The response I get is:
SIOCADDRT: No such process

(2012-06-21, 21:39)knight2000 Wrote: That would work if the 192.168.1.65 was a router but being a computer you need to make that computer to route from the 192.168.1.0 subnet to the 10.42.0.0 subnet. Otherwise its just going to drop the packets.
What is the command I need to type in terminal?

(2012-06-21, 22:34)wuench Wrote: You really should consider letting your router do the routing on your network. But Knight2k is correct, you'll need to enable routing (IP Forwarding in non-standard MS speak) on the PC between the interfaces and also open any firewall settings to allow the traffic through.
How should I set this up? Because from what I understand it is the computer that gives the AppleTV an internet connection and puts it in a different subnet.
Reply
#8
Bump
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc remote and different subnet0