title: laravel echo server , redis
body: <p>i have a problem with remote connections. </p>
  
  <p>my vhost is : redis.test</p>
  
  <p>i added this on blade file:</p>
  
  <pre><code>&lt;script src="//redis.test:6001/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>.env file</p>
  
  <pre><code>BROADCAST_DRIVER=redis
  REDIS_HOST=redis.test
  REDIS_PASSWORD=null
  REDIS_PORT=6379
  </code></pre>
  
  <p>echo configuration</p>
  
  <pre><code>import Echo from "laravel-echo"
  
  window.Echo = new Echo({
     broadcaster: 'socket.io',
     host: 'http://redis.test:6001'
  });
  </code></pre>
  
  <p>laravel-exho-server.json</p>
  
  <pre><code>{
      "authHost": "http://redis.test",
      "authEndpoint": "/broadcasting/auth",
      "clients": [
          {
              "appId": "f27485125ac2627f",
              "key": "6328e672f42cbf4cba1de3da215ec41a"
          }
      ],
      "database": "redis",
      "databaseConfig": {
          "redis": {
              "port": "6379",
              "host": "redis.test"
          },
          "sqlite": {
              "databasePath": "/database/laravel-echo-server.sqlite"
          }
      },
      "devMode": true,
      "host": "redis.test",
      "port": "6001",
      "protocol": "http",
      "socketio": {},
      "sslCertPath": "",
      "sslKeyPath": ""
  }
  </code></pre>
  
  <p>it works when i try to broadcast with a local connection (2 browsers - same pc), but when i try to send a "message" from other pc on lan network (192.168.1.50) i have this error </p>
  
  <pre><code>GET: http://redis.test:6001/socket.io/socket.io.js net::err_connection_refused
  
  [vue_warn] error in created hook
  </code></pre>
  
  <p>how ca i resolve this?</p>