How to manage Twonky Server with URL RPC GET SET commands
Posted: Fri Feb 25, 2011 12:19 am
I spent a bit of time searching throught the forums and wanted to stop having to search for things
I have already found, and wanted to put it all in one place, for my benefit, as well as others
So here is a list of things I have stumbled on that might help you to manage your server
This is a list of URL's that can be leveraged for direct access
Default
http ://<server_ip_address>:9000/
Menu Webbrowse
http ://<server_ip_address>:9000/setup
PC MediaBrowser
http ://<server_ip_address>:9000/webbrowse
Mobile MediaBrowser 240*320
http ://<server_ip_address>:9000/webbrowse-n95
Mobile MediaBrowser 320*240
http ://<server_ip_address>:9000/webbrowse-e61
TwonkyMedia Settings
http ://<server_ip_address>:9000/config
RSS
http ://<server_ip_address>:9000/rss
http ://<server_ip_address>:9000/rss/feed
http ://<server_ip_address>:9000/mediarss
PSP
http ://<server_ip_address>:9000/webbrowse-psp
Wii
http ://<server_ip_address>:9000/resources/wiiPlayer.html
http ://<server_ip_address>:9000/resources/wiiPlayer.swf
JSON
http ://<server_ip_address>:9000/json/feed
This is a list of RPC commands that can perform actions or return information
(note: be careful with the /rpc/stop as you have no way to start it remotely with twonky)
http ://<server_ip_address>:9000/rpc/rescan
http ://<server_ip_address>:9000/rpc/rebuild
http ://<server_ip_address>:9000/rpc/reset
http ://<server_ip_address>:9000/rpc/restart
http ://<server_ip_address>:9000/rpc/stop
http ://<server_ip_address>:9000/rpc/version
http ://<server_ip_address>:9000/rpc/stat
http ://<server_ip_address>:9000/rpc/statistics
http ://<server_ip_address>:9000/rpc/log_getfile
http ://<server_ip_address>:9000/rpc/log_clearfile
http ://<server_ip_address>:9000/rpc/memory
http ://<server_ip_address>:9000/rpc/info_status
http ://<server_ip_address>:9000/rpc/info_nics
http ://<server_ip_address>:9000/rpc/get_clients
http ://<server_ip_address>:9000/rpc/info_clients
http ://<server_ip_address>:9000/rpc/info_connected_clients
http ://<server_ip_address>:9000/rpc/stream_active
http ://<server_ip_address>:9000/rpc/stream_info
http ://<server_ip_address>:9000/rpc/resetclients
http ://<server_ip_address>:9000/rpc/mediafusion
http ://<server_ip_address>:9000/rpc/mediafusionproxy
http ://<server_ip_address>:9000/rpc/aggregation
http ://<server_ip_address>:9000/rpc/bad_files
http ://<server_ip_address>:9000/rpc/clear_cache
http ://<server_ip_address>:9000/rpc/get_webdav_link
This will get a list of all twonky server parameters
(Almost all of them are changeable, but not all for ex: version)
http ://<server_ip_address>:9000/rpc/get_all
This will let you see the value of a parameter
(for ex: http ://<server_ip_address>:9000/rpc/get_option?friendlyname)
http ://<server_ip_address>:9000/rpc/get_option?
This will let you change the value of a paramter
(for ex: http ://<server_ip_address>:9000/rpc/set_option?friendlyname=My Twonky Server)
http ://<server_ip_address>:9000/rpc/set_option?
This is the list returned from get_all I did on 6.0.31-RC6
(note: not all of these are changeable or viewable with get and set)
friendlyname=
ip=
nicrestart=
v=
platform=
httpport=
ininame=
inipath=
read_only=
ssdpttl=
appdata=
clearclientsonrestart=
disablelocalssdp=
enabletls=
nmcmode=
vlevel=
stack_size=
accessuser=
accesspwd=
autotree=
cachedir=
cachemaxsize=
cdkey=
clientautoenable=
codepage=
compilationsdir=
dbdir=
dyndns=
enableweb=
followlinks=
httpremoteport=
ignoredir=
ituneslib=
language=
scantime=
startupmb=
streambuffer=
uploadenabled=
servermanagedmusicdir=
servermanagedpicturedir=
servermanagedvideodir=
onlinedir=
webnodes=
webpicturenum=
mediastatisticsenabled=
mediastatisticsdir=
defaultview=
bgtrans=
rmdrives=
rmhomedrive=
rmautoshare=
maxitems=
suppressmenu=
aggregation=
aggmode=
secure_folder_path=
autoupdateinstall=
remoteaccess=
remoteaccessflash=
maxscantimeperfile=
dtcpsessionlimit=
dtcpsessioncount=
uploaddestinationfriendlyname=
uploadrestrictedprofiles=
disablefrontends=
upnpuploadlimit=
disablesleepmode=
uploadmaxfilesize=
httpsessionlimit=
clearcacheonrestart=
disablemediafusion=
scalermaxpixels=
hdrlnextreadyvalue=
telnetport=
telnetip=
version=
enable_reget=
event_poll_interval=
map_seekpct=
no_persist_conn=
revalidate_time=
msearch_start_interval=
msearch_interval=
msearch_quick=
dmr_state_poll_interval=
Now for the milltion dollar question
How do you disable RPC in Twonky Server?
To disable RPC, set enableweb= to 0 or 1
Be aware you will not be able to use web config from a client on the local lan in doing so
If you are using remote access, it would be advisable to use enableweb= set to 0 or 1
If not for the sake of just blocking attempts to log in, but to also stop wide open rpc access to twonky
I have already found, and wanted to put it all in one place, for my benefit, as well as others
So here is a list of things I have stumbled on that might help you to manage your server
This is a list of URL's that can be leveraged for direct access
Default
http ://<server_ip_address>:9000/
Menu Webbrowse
http ://<server_ip_address>:9000/setup
PC MediaBrowser
http ://<server_ip_address>:9000/webbrowse
Mobile MediaBrowser 240*320
http ://<server_ip_address>:9000/webbrowse-n95
Mobile MediaBrowser 320*240
http ://<server_ip_address>:9000/webbrowse-e61
TwonkyMedia Settings
http ://<server_ip_address>:9000/config
RSS
http ://<server_ip_address>:9000/rss
http ://<server_ip_address>:9000/rss/feed
http ://<server_ip_address>:9000/mediarss
PSP
http ://<server_ip_address>:9000/webbrowse-psp
Wii
http ://<server_ip_address>:9000/resources/wiiPlayer.html
http ://<server_ip_address>:9000/resources/wiiPlayer.swf
JSON
http ://<server_ip_address>:9000/json/feed
This is a list of RPC commands that can perform actions or return information
(note: be careful with the /rpc/stop as you have no way to start it remotely with twonky)
http ://<server_ip_address>:9000/rpc/rescan
http ://<server_ip_address>:9000/rpc/rebuild
http ://<server_ip_address>:9000/rpc/reset
http ://<server_ip_address>:9000/rpc/restart
http ://<server_ip_address>:9000/rpc/stop
http ://<server_ip_address>:9000/rpc/version
http ://<server_ip_address>:9000/rpc/stat
http ://<server_ip_address>:9000/rpc/statistics
http ://<server_ip_address>:9000/rpc/log_getfile
http ://<server_ip_address>:9000/rpc/log_clearfile
http ://<server_ip_address>:9000/rpc/memory
http ://<server_ip_address>:9000/rpc/info_status
http ://<server_ip_address>:9000/rpc/info_nics
http ://<server_ip_address>:9000/rpc/get_clients
http ://<server_ip_address>:9000/rpc/info_clients
http ://<server_ip_address>:9000/rpc/info_connected_clients
http ://<server_ip_address>:9000/rpc/stream_active
http ://<server_ip_address>:9000/rpc/stream_info
http ://<server_ip_address>:9000/rpc/resetclients
http ://<server_ip_address>:9000/rpc/mediafusion
http ://<server_ip_address>:9000/rpc/mediafusionproxy
http ://<server_ip_address>:9000/rpc/aggregation
http ://<server_ip_address>:9000/rpc/bad_files
http ://<server_ip_address>:9000/rpc/clear_cache
http ://<server_ip_address>:9000/rpc/get_webdav_link
This will get a list of all twonky server parameters
(Almost all of them are changeable, but not all for ex: version)
http ://<server_ip_address>:9000/rpc/get_all
This will let you see the value of a parameter
(for ex: http ://<server_ip_address>:9000/rpc/get_option?friendlyname)
http ://<server_ip_address>:9000/rpc/get_option?
This will let you change the value of a paramter
(for ex: http ://<server_ip_address>:9000/rpc/set_option?friendlyname=My Twonky Server)
http ://<server_ip_address>:9000/rpc/set_option?
This is the list returned from get_all I did on 6.0.31-RC6
(note: not all of these are changeable or viewable with get and set)
friendlyname=
ip=
nicrestart=
v=
platform=
httpport=
ininame=
inipath=
read_only=
ssdpttl=
appdata=
clearclientsonrestart=
disablelocalssdp=
enabletls=
nmcmode=
vlevel=
stack_size=
accessuser=
accesspwd=
autotree=
cachedir=
cachemaxsize=
cdkey=
clientautoenable=
codepage=
compilationsdir=
dbdir=
dyndns=
enableweb=
followlinks=
httpremoteport=
ignoredir=
ituneslib=
language=
scantime=
startupmb=
streambuffer=
uploadenabled=
servermanagedmusicdir=
servermanagedpicturedir=
servermanagedvideodir=
onlinedir=
webnodes=
webpicturenum=
mediastatisticsenabled=
mediastatisticsdir=
defaultview=
bgtrans=
rmdrives=
rmhomedrive=
rmautoshare=
maxitems=
suppressmenu=
aggregation=
aggmode=
secure_folder_path=
autoupdateinstall=
remoteaccess=
remoteaccessflash=
maxscantimeperfile=
dtcpsessionlimit=
dtcpsessioncount=
uploaddestinationfriendlyname=
uploadrestrictedprofiles=
disablefrontends=
upnpuploadlimit=
disablesleepmode=
uploadmaxfilesize=
httpsessionlimit=
clearcacheonrestart=
disablemediafusion=
scalermaxpixels=
hdrlnextreadyvalue=
telnetport=
telnetip=
version=
enable_reget=
event_poll_interval=
map_seekpct=
no_persist_conn=
revalidate_time=
msearch_start_interval=
msearch_interval=
msearch_quick=
dmr_state_poll_interval=
Now for the milltion dollar question
How do you disable RPC in Twonky Server?
To disable RPC, set enableweb= to 0 or 1
Be aware you will not be able to use web config from a client on the local lan in doing so
If you are using remote access, it would be advisable to use enableweb= set to 0 or 1
If not for the sake of just blocking attempts to log in, but to also stop wide open rpc access to twonky