View Single Post
Old 2007-05-06, 12:24   #15 (permalink)
strawberry
Portal Member
 
Join Date: Jan 2006
Posts: 39
Thanks: 3
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by Nightflyer View Post
Great,
I got the MPTVClient connected with TVlibrary database.

But now I can't get VLC to show stream.
I tested on server, and it doesn't work there either. If I connect to stream with IP 127.0.0.1, it works. If I connect with 10.0.0.4 (server IP), I can't get connected. And so it won't work from clients either...
What is wrong in my configuration???
It seems to set stream to address 127.0.0.1 (found in "streaming server.Log"), but where does it get that setting??? Couldn't find in any config file or database.


Got it! WLAN connection isn't up yet when TVService starts. So that's why streaming server gets IP 127.0.0.1. I restarted TVService, and now I can connect to stream from clients!

Now I only have to figure out how to get TVService to wait for network connection get up (my USB-WLAN-dongle is pretty slow to initialize, it can take 10-15 sec to get connected)

MPTVClient rocks!
Now I can use my old and slow laptop to watch TV.

Thanks for your help piranha & starawberry!
Just a little thought for your WLAN problem, when it is available it wil have an ip-adress you can ping to, perhaps this little batch-file will do the trick.
No warranties or support, just a little hint, tested it on my own tvserver-setup and for me it would work (I don't have the problem though, so I don't need the solution )

Replace 192.168.230.233 with the ip-address you want to find, increase maxcount if the batch-file ends before the WLAN-stack is up



RestartTVServer.bat

@echo off
Rem Set checkip to whatever ip-address you need to have
set checkip=192.168.230.233
Rem Set the number of times you want to try 5 pings to the ip-address
set maxcount=2

Rem Stop de TVservice since it is bound to 127.0.0.1 only
net stop tvservice


FOR /L %%a IN (1,1,%maxcount%) DO (

echo Run number %%a

ping %checkip% > %temp%\checkip.txt

FOR /F %%a IN (%temp%\checkip.txt) DO (
if %%a==Reply (
echo yesss, we have an ip-stack on %checkip%
net start tvservice
goto einde
)
)
)


:einde


Hmmmzzzz, tabs and/or spaces are ommited when you view the post, sorry for that, it makes the file a bit unreadable

Last edited by strawberry; 2007-05-06 at 22:47.
strawberry is offline   Reply With Quote