Web ui autodetect host

 	web-ui: added autodetection of host for jsonprc connection