Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

340
Views
node socket.io not working using VPN

Everything's work fine on localhost but when I place it to live server some user's can't read my socket, even I use VPN my socket stop having an error (GET http://websitedomain.com:9090/socket.io/?EIO=3&transport=polling&t=LktMvZ3 net::ERR_CONNECTION_TIMED_OUT) even I use 0.0.0.0 in port still not working

Server.js

var socket  = require('socket.io');
var express = require('express');
var app     = express();
var server  = require('http').createServer(app);
var io      = socket.listen(server);
var port    = process.env.PORT || 9090;

app.get('/', function (req, res) {
  res.send('connected')
})

server.listen(port, 'website-ip', function () {
  console.log('Server listening at port %d', port);
});

App.js

socket = io.connect('http://'+window.location.hostname+':9090');
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Can you please try to add a reverse proxy like Nginx so you can establish the connection through port 80? Some systems/firewalls probably have blocked that port.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!