Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6895469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:54:45+00:00 2026-05-27T06:54:45+00:00

I am making a small multiplayer game using node.js and socket.io on my laptop.

  • 0

I am making a small multiplayer game using node.js and socket.io on my laptop. Occasionally, when I want to test some multiplayer features I log into the game using my PC (the PC and the laptop are connected to a LAN network). Socket.io connects to my router’s IP (196. …) and the port 8080. Everything worked well until today, and when I just wanted to see how it worked before I changed anything – suddenly it didn’t. I first opened Google Chrome on my laptop and log in, that worked OK. Then, I opened Google Chrome on my PC and tried to connect, and it didn’t work. First, the user enters his name and password to a form and clicks a login button, which calls this function:

          login = function()
          {
               var n = document.forms['logn']['name'].value;
               var p = document.forms['logn']['password'].value;              

            var socket = io.connect("http://192.168.0.13:8080");
            socket.emit("login", {n: n, p: p});

            socket.on("got", function(data){
                 if (data.good)
                 {
                      main(socket, n)
                 }
                 else
                 {
                      alert("Failed to log in.");
                 }
            });
          }

When I the function get’s called, nothing happens. I have noticed that the server logs messages similar to this:

setting request GET /socket.io/1/websocket/

But xhr-polling is more often than websocket. This is all I know for now, also, everything works OK on Firefox, so I think it’s a problem with Google Chrome.

server logs when I try to log in from the PC:

debug – served static /socket.io.js debug – client authorized
info – handshake authorized 30836340583773206
debug – setting request GET /socket.io/1/websocket/30836340583773206
debug – set heartbeat interval for client 30836340583773206
debug – client authorized for
debug – setting request GET /socket.io/1/xhr-polling/30836340583773206?t=1315509666877
debug – setting poll timeout
debug – discarding transport
debug – cleared heartbeat interval for client 30836340583773206
debug – served static /socket.io.js

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:54:46+00:00Added an answer on May 27, 2026 at 6:54 am

    I just had exactly the same issue.

    I could handshake, and authenticate through Chrome but any emits were not being correctly handled on the client (although Socket.io was sending them).

    Log in to your server and update socket.io.

    $> npm ls will tell you the latest version of your installed modules. In my instance I was running:

    /var/www/discovery/node
    ├─┬ express@2.4.6 
    │ ├── connect@1.6.2 
    │ ├── mime@1.2.2 
    │ └── qs@0.3.1 
    ├── iniparser@1.0.3 
    ├── jsonrpc@0.1.1 
    ├── jsonrpc-ws@0.0.3 
    ├── jsonrpc2@0.0.6 
    ├─┬ mysql@0.9.3 
    │ └─┬ hashish@0.0.4 
    │   └── traverse@0.5.1 
    └─┬ socket.io@0.7.9 
      ├── policyfile@0.0.4 
      ├── redis@0.6.6 
      └─┬ socket.io-client@0.7.9 
        ├── uglify-js@1.0.6 
        ├── websocket-client@1.0.0 
        └── xmlhttprequest@1.2.2 
    

    You can see that socket.io@0.7.9 is old. This also means that it doesn’t have the latest ws:// websocket protocol update.

    So in order to fix it, just run :

    $> npm update socket.io express
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a small game, and I need some more help with it.
I am making some small business intelligence applications/tools that need to talk to other
I am making a small game in flash, I would like to track scores
I'm making a small game for a school project, and basically there are 20
I'm making a small test framework that uses the JavaScript module pattern for UI
I'm making a small file-browser for my own use, in Ruby, and using Qt
I'm making a small Calendar application with some specific functions for my userbase but
I'm making a small game in Java and would like to add a Quake
I am making a small HTML page editor. The editor loads a file into
I'm making a small project to learn Django, and i'm having some problems trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.