I'm developing a site using WebSockets and I'm using XSockets.NET to implement the whole WebSockets server.
Furthermore, I'm able to reach XSocket.NET controller from within the development machine, but I'm unable to reach it from another machine.
BTW, it's not a DNS problem because the Web site itself is browsable from any other machine: it's something with WebSockets.
Currently I'm receiving the following error in Firebug: Firefox can't establish a connection to the server [...], where the server is the whole hostname on port 7532.
I can provide a sample code of how I'm configuring and starting the whole WebSockets server:
IXSocketServerContainer server = Composable.GetExport<IXSocketServerContainer>();
List<IConfigurationSetting> serverConfig = new List<IConfigurationSetting>();
serverConfig.Add(new ConfigurationSetting("ws://[host name]:7532", new HashSet<string> { "*" }));
server.StartServers(configurationSettings: serverConfig);
Also, the whole XSockets.NET is hosted in a Windows Service, and I'm connecting to the XSocket.NET controller using the out-of-the-box XSockets.NET JavaScript API:
// This will work as expected when I open my site from the development machine
var conn = new XSockets.WebSocket("ws://[host name]:7352/[controller name]");
conn.on(XSockets.Events.open, function (clientInfo) {
conn.subscribe("[Action name]", function (message) {
});
});
What would prevent other machines from connecting to the whole WebSocket server? What am I missing?