Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
How to connect android application to local computer as a server

I am Trying this Socket.IO in my Application https://github.com/nkzawa/socket.io-android-chat

I am connecting the socket with

mSocket =  IO.socket(ip:XXXX);

It is throwing EVENT_CONNECT_ERROR listener, i connect my applcation using my computer as a local server.

here is my node js code:

var http = require('http');

var server = http.createServer(function (req,res) {

  res.writeHead(200, {'Content-Type': 'text/plain'});

  res.end('Hello World');

});

server.on('listening',function(){

    console.log('ok, server is running');
});

server.listen(3000);        

console.log('yes connected');
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In chrome I use this to check

chrome://inspect/#devices

Click on PortForwarding . Use Port: 8080 IPAddress and Port:localhost:8080

On your phone ( must be connected via USB to your computer) , go to the address in your phone's chrome browser. Sometimes you need to refresh before your phone can use your localhost.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda