FAQ  •  Register  •  Login

A command to tell Serviio to "republish" it self

<<

patanpatan

Serviio newbie

Posts: 19

Joined: Fri Mar 04, 2011 1:47 am

Post Mon Feb 11, 2013 8:55 pm

A command to tell Serviio to "republish" it self

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?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 11, 2013 9:22 pm

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

did you try the Start/stop server buttons in the console?
<<

patanpatan

Serviio newbie

Posts: 19

Joined: Fri Mar 04, 2011 1:47 am

Post Mon Feb 11, 2013 10:17 pm

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

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?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Feb 16, 2013 10:38 pm

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

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
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Feb 17, 2013 2:56 am

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

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.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

patanpatan

Serviio newbie

Posts: 19

Joined: Fri Mar 04, 2011 1:47 am

Post Sun Feb 17, 2013 3:49 am

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

@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!
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Feb 18, 2013 1:19 am

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

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!
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

patanpatan

Serviio newbie

Posts: 19

Joined: Fri Mar 04, 2011 1:47 am

Post Mon Apr 15, 2013 11:39 pm

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

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?
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Tue Apr 16, 2013 12:04 am

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

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.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 55 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.