ColinYounger
03-19-2008, 11:18 AM
I'm posting here as I know several lurkers are veteran hackers.
I want a script to connect (via 'socket') to the TiVo it's running on. From what I've seen and read, this should be possible.
However, I can't get my script to work on my TiVos. A simple debug script times out:set hHandle [ socket 192.168.0.200 3105 ]
close $hHandleI'm deliberately using that port as I know it works. ;)
Even a simple ping fails - .200 here is TiVo1, .210 is TiVo2. TiVo2 is trying to ping TiVo1 and then itself:TiVo2: {/var/hack} % ping -c 5 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: icmp_seq=0 ttl=255 time=2.841 ms
64 bytes from 192.168.0.200: icmp_seq=1 ttl=255 time=5.990 ms
64 bytes from 192.168.0.200: icmp_seq=2 ttl=255 time=2.500 ms
64 bytes from 192.168.0.200: icmp_seq=3 ttl=255 time=2.522 ms
64 bytes from 192.168.0.200: icmp_seq=4 ttl=255 time=2.329 ms
--- 192.168.0.200 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.329/3.236/5.990 ms
TiVo2: {/var/hack} % ping -c 5 192.168.0.210
PING 192.168.0.210 (192.168.0.210): 56 data bytes
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
--- 192.168.0.210 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
TiVo2: {/var/hack} % ping -c 5 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
I suspect a setup issue in my networking, and have checked and searched until I'm ready to admit defeat. Any pointers?
FWIW, ifconfig -a shows:lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
BROADCAST LOOPBACK MTU:3584 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0
eth0 Link encap:Ethernet HWaddr 00:0B:AD:69:C6:68
inet addr:192.168.0.210 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1333 errors:0 dropped:0 overruns:0 frame:0
TX packets:276 errors:0 dropped:0 overruns:0 carrier:0 coll:0
Interrupt:29
I want a script to connect (via 'socket') to the TiVo it's running on. From what I've seen and read, this should be possible.
However, I can't get my script to work on my TiVos. A simple debug script times out:set hHandle [ socket 192.168.0.200 3105 ]
close $hHandleI'm deliberately using that port as I know it works. ;)
Even a simple ping fails - .200 here is TiVo1, .210 is TiVo2. TiVo2 is trying to ping TiVo1 and then itself:TiVo2: {/var/hack} % ping -c 5 192.168.0.200
PING 192.168.0.200 (192.168.0.200): 56 data bytes
64 bytes from 192.168.0.200: icmp_seq=0 ttl=255 time=2.841 ms
64 bytes from 192.168.0.200: icmp_seq=1 ttl=255 time=5.990 ms
64 bytes from 192.168.0.200: icmp_seq=2 ttl=255 time=2.500 ms
64 bytes from 192.168.0.200: icmp_seq=3 ttl=255 time=2.522 ms
64 bytes from 192.168.0.200: icmp_seq=4 ttl=255 time=2.329 ms
--- 192.168.0.200 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.329/3.236/5.990 ms
TiVo2: {/var/hack} % ping -c 5 192.168.0.210
PING 192.168.0.210 (192.168.0.210): 56 data bytes
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
ping: sendto: Network is down
--- 192.168.0.210 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
TiVo2: {/var/hack} % ping -c 5 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
I suspect a setup issue in my networking, and have checked and searched until I'm ready to admit defeat. Any pointers?
FWIW, ifconfig -a shows:lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
BROADCAST LOOPBACK MTU:3584 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0
eth0 Link encap:Ethernet HWaddr 00:0B:AD:69:C6:68
inet addr:192.168.0.210 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1333 errors:0 dropped:0 overruns:0 frame:0
TX packets:276 errors:0 dropped:0 overruns:0 carrier:0 coll:0
Interrupt:29