home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
MPTvClient (stand alone TV client)
[Announce] MPTvClient V1.2.5 (20.12.2007) II
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="strawberry" data-source="post: 148298" data-attributes="member: 17725"><p>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.</p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />)</p><p></p><p>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</p><p></p><p></p><p></p><p>RestartTVServer.bat</p><p></p><p>@echo off</p><p>Rem Set checkip to whatever ip-address you need to have</p><p>set checkip=192.168.230.233</p><p>Rem Set the number of times you want to try 5 pings to the ip-address</p><p>set maxcount=2</p><p></p><p>Rem Stop de TVservice since it is bound to 127.0.0.1 only</p><p>net stop tvservice</p><p></p><p></p><p>FOR /L %%a IN (1,1,%maxcount%) DO (</p><p></p><p>echo Run number %%a</p><p></p><p>ping %checkip% > %temp%\checkip.txt</p><p></p><p> FOR /F %%a IN (%temp%\checkip.txt) DO (</p><p> if %%a==Reply (</p><p> echo yesss, we have an ip-stack on %checkip%</p><p> net start tvservice</p><p> goto einde</p><p> )</p><p> )</p><p>)</p><p></p><p></p><p>:einde</p><p></p><p></p><p>Hmmmzzzz, tabs and/or spaces are ommited when you view the post, sorry for that, it makes the file a bit unreadable</p></blockquote><p></p>
[QUOTE="strawberry, post: 148298, member: 17725"] 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 :D) 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
MPTvClient (stand alone TV client)
[Announce] MPTvClient V1.2.5 (20.12.2007) II
Contact us
RSS
Top
Bottom