Is there any way to do this? I know java applets, flash don't allow this, what about browser plugins? Other ideas?
views:
141answers:
2Theoretically you could do this in windows by implementing an ActiveX control browser plugin. However, even if you get the user to install it, if the "browser server" is behind a firewall or proxy no client is going to be able to connect to it. And there is the problem of what DNS name do clients use to find the "browser-server?" Most likely (unless machine running the browser is actually an internet host) it won't have a DNS entry. Every machine has an IP address of course, but with DHCP, etc, IP addresses are randomly assigned so there is no way to know ahead of time what a given "browser-server's" IP is going to be.
If you're trying to create something like a multiplayer game or chat application, the better way to go about it is have all the clients connect to a server and that server relays information back and forth between the clients. Then you can implement it in Flash or Javascript/Ajax and no one has to install anything.
Opera are doing exactly this in their browser: Opera Unite: a Web server on the Web browser.