The reason you cannot connect to a network resource from an external / hosted / live site is due to the security features of recent browsers such as Firefox.
You can only open shared resources on a local network from a local HTML document.
The only way around this is to install a plugin for your browser that removes or disables this security feature, as far as I know.
source share