Page 1 of 1

A command to tell Serviio to "republish" it self

PostPosted: Mon Feb 11, 2013 8:55 pm
by patanpatan
Maybe this option is currently available, but I couldn't find it (mainly because I didn't know how to describe it).

I have serviio on a laptop, most of the time via WiFi, but when I want to stream to FullHD videos I need to connect an ethernet cable to avoid pauses and so.
The thing is that when I turn off the WiFi and plug the cable, I need to restart serviio so it can "publish" itself and my TV is able to "see it", and all my online resources will start reloading from zero.
Is there a way to instruct serviio to republish, without restarting it?

Re: A command to tell Serviio to "republish" it self

PostPosted: Mon Feb 11, 2013 9:22 pm
by zip
did you try the Start/stop server buttons in the console?

Re: A command to tell Serviio to "republish" it self

PostPosted: Mon Feb 11, 2013 10:17 pm
by patanpatan
Yep, but my TV will not see Serviio until I restart it. I think the problem is with the laptop's IP is changing when I change from WiFi to ethernet. Does it make sense to you?

Re: A command to tell Serviio to "republish" it self

PostPosted: Sat Feb 16, 2013 10:38 pm
by jhb50
I have 2 bats, named wireless-on and wired-on, which use the netsh and devcon commands to enable/disable the appropriate adapters and to set the address and dns for the adapter being enabled. This allows me to switch without impacting serviio.

@echo off
:COM Turn LAN OFF & wireless ON
netsh int IPV4 set address "Local Area Connection" dhcp
devcon disable *DEV_8136
devcon enable *DEV_8172
call wait 5
netsh int IPv4 set address "Wireless Network Connection" static 192.168.1.10 255.255.255.0 192.168.1.1 1
netsh int IPV4 set dns "Wireless Network Connection" static 68.238.64.12
netsh int IPV4 add dns "Wireless Network Connection" 68.238.96.12
exit

@echo off
: Turn wireless off & LAN ON
netsh int IPV4 set address "Wireless Network Connection" dhcp
devcon disable *DEV_8172
devcon enable *DEV_8136
call wait 4
netsh int IPV4 set address "Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.1 1
exit

Re: A command to tell Serviio to "republish" it self

PostPosted: Sun Feb 17, 2013 2:56 am
by atc98092
If it is Windows, you could have a batch file (call it "restart.bat") that would just restart the service.

  Code:
NET STOP SERVIIO
NET START SERVIIO


That's likely the fastest way, certainly compared to rebooting. If you don't want any response in the command window add @Echo off as the first line.

Re: A command to tell Serviio to "republish" it self

PostPosted: Sun Feb 17, 2013 3:49 am
by patanpatan
@atc98092, I do have a .bat to restart serviio, but the issue is that all online content dissapear, and I have to wait until it's all loaded again.
@jhb50, your solution might be closer to what I need, I'll give it a try and let you know.

Thanks!

Re: A command to tell Serviio to "republish" it self

PostPosted: Mon Feb 18, 2013 1:19 am
by atc98092
patanpatan wrote:@atc98092, I do have a .bat to restart serviio, but the issue is that all online content dissapear, and I have to wait until it's all loaded again.
@jhb50, your solution might be closer to what I need, I'll give it a try and let you know.

Thanks!


Yep, that's correct. Wasn't thinking about that. I see you even mentioned it, and I overlooked it. Sorry.

I'm not sure how Zip has Serviio bind to the network interface, so I have no other ideas. About jhb50's script: Netsh is built into Windows, but devcon is not. You can download it from Microsoft. Grab it and I think you'll have what you want. It looks like a slick solution. I wasn't even aware of it.

Good luck!

Re: A command to tell Serviio to "republish" it self

PostPosted: Mon Apr 15, 2013 11:39 pm
by patanpatan
Hi guys, I've never been able to fix this issue, but in the latest release I've found:
improved network discovery for the case of DHCP IP change while the server's running


Is this the solution to my problem? How can I use it?

Re: A command to tell Serviio to "republish" it self

PostPosted: Tue Apr 16, 2013 12:04 am
by DenyAll
The new binding strategy is automatic (ie you don't need to do anything). Try the latest version and see if it helps. The new strategy restarts the DLNA advertising and listening services so if triggered should work.

If it doesn't automatically work, you may also have to manually change the bound adaptor in Serviio console after changing from wired to wireless and visa versa.