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

339
Views
nodo socket.io no funciona usando VPN

Todo funciona bien en localhost, pero cuando lo coloco en el servidor en vivo, algunos usuarios no pueden leer mi socket, incluso si uso VPN, mi socket deja de tener un error (GET http://websitedomain.com:9090/socket.io/?EIO =3&transport=polling&t=LktMvZ3 net::ERR_CONNECTION_TIMED_OUT) incluso si uso 0.0.0.0 en el puerto todavía no funciona

Servidor.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); });

Aplicación.js

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

0

¿Puede intentar agregar un proxy inverso como Nginx para poder establecer la conexión a través del puerto 80? Algunos sistemas/cortafuegos probablemente hayan bloqueado ese puerto.

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!