Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

unexisting client id #10

Open
Open
@paaaav

Description

@paaaav

Hello!

I'm using a modified version of the unsupported Rust port, but maybe this does not matter. I successfully connected a server application to a separate client application (both in Rust) with netcode 1.01, they exchange information very well. It does not work for me using a browser, that connects to the very same server. Curiously the official test page https://netcode.redpoint.games/basic works.

What am I missing here? I installed the browser extension for Firefox and Chromium, my local test page delivers the error "unexisting client id xxxx", where xxxx varies, when connecting locally to my server.

Example:

This page tests netcode.io support in your browser.

Status of window.netcode: Available!

Status of netcode client: Error: unexisting client id: 443299215

Status of netcode connection: sendingConnectionResponse

Packets sent to server: ...

Last packet received from server: ..."

While the server has the following lines in the log:

TRACE: New data on listening socket
TRACE: Sending challenge packet
TRACE: Accepted connection V4(127.0.0.1:28356)

(nothing happens, I press f5 on the test page)

TRACE: New data on listening socket
TRACE: Client already exists, skipping socket creation
TRACE: Sending challenge packet
TRACE: Failed to hear from client 11184811, timed out
TRACE: Client disconnected 11184811
Server: ClientDisconnect '11184811'
TRACE: New data on listening socket
TRACE: Sending challenge packet
TRACE: Accepted connection V4(127.0.0.1:30939)

I tracked this error a while and it seems to come from the browser extension. The reason is that the server does not seem to receive the event ServerEvent::ClientConnect when I'm using the browser extension. Thus the client id is unexisting, but the connection seems to be established " Accepted connection V4(127.0.0.1:30939)".

What can be the cause that the server does not receive ClientConnect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions