I currently have a basic application using socket.io
and expressjs
up and running. The application is hosting a simple HTML file, which I can successfully access through my browser. However, when attempting to access it from other devices on my network, the connection seems to fail.
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io').listen(server);
users = [];
connections = [];
server.listen(process.env.PORT || 3000);
console.log('Server running...')
var path = require('path');
app.use(express.static(path.join(__dirname, "")));
I have a feeling that I may be overlooking something important. What steps should I take in order to deploy this site for use on other devices (or even on the internet)?