title: Socket.io.js - net::ERR_ABORTED & 404 Not Found
body: <p>i'm new to socket.io. Currently i facing an issue which is socket.io.js not able to access.</p>
  
  <p>I manage to access from my local PC, but when someone connect to my LAN to my PC, it will prompt this error <code>'net::ERR_ABORTED &amp; 404 Not Found'</code>. </p>
  
  <p>I notice the issue was <code>localhost</code>, when someone else access to your PC localhost script won't work on their side. Besides, i also tested with PHP '<code>$_SERVER['SERVER_NAME']</code>'</p>
  
  <p>server.js</p>
  
  <pre><code>var app = require('express')();
  var http = require('http').Server(app);
  var io = require('socket.io')(http);
  
  var port = 3005;
  
  io.on('connection',function(socket){
      console.log(socket.id);
  });
  
  http.listen(port, function(){
    console.log('listening on *:%d',port);
  });
  </code></pre>
  
  <p>client.js</p>
  
  <pre><code>&lt;script src="http://localhost:3005/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
       var socket = io.connect('http://localhost:3005');
       $(function(){
          socket.emit('refresh_list');
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>If source code require, i'll upload my code to github/bitbucket.</p>
  
  <p><strong>Version:-</strong> </p>
  
  <p>Node v8.9.4</p>
  
  <p>Socket.io 5.6.0</p>
  
  <p>Express 5.6.0</p>