So i used ngrok tunnel to make local multiplayer like global multiplayer, but i can't connect to the address that i got from ngrok. It seems that it's connects but i'm not spawning at scene and nothing in total.. Any ideas? (I'm making a web game)

I have used WebSocket for multiplayer. (WebSocketMultiplayerPeer)

i have this code:
var peer = WebSocketMultiplayerPeer.new()
peer.create_client("ws://" + str(address) + ":" + str(port))
where "address" supposed to be an ngrok link.

Did you print or examine 'address' in the debugger, to make sure that it really contains the link? (with no extra spaces, line-feeds, or extra characters)?

    Haystack yep, it looks exactly like this: "wss://my-ngrok-address.ngrok-free.app:10000"

    But there also some warning page from ngrok itself, which i don't know how to remove from godot.. i know that i can send some header to remove it, but how if i need to connect directly from godot?

    so there like 2 problems:

    • connection itself
    • this page

    every time i more think that it's mostly impossible to make a "server" this way...
    any ideas?

      Given this code:

      var peer = WebSocketMultiplayerPeer.new()
      peer.create_client("ws://" + str(address) + ":" + str(port))

      darceyo If 'address' contains "wss://my-ngrok-address.ngrok-free.app:10000", then it already has the "wss://" prefix and the port # suffix. So the string that you are sending to 'create_client' would be "ws://wss://my-ngrok-address.ngrok-free.app:10000:10000", which would be wrong. You don't need to add the prefix and port # if they are already in the 'address' string.

        Haystack "ws://wss://my-ngrok-address.ngrok-free.app:10000:10000",

        nope, i mean that it looks like "wss://my-ngrok-address.ngrok-free.app:10000" when it's ready to go,
        after this: peer.create_client("ws://" + str(address) + ":" + str(port)) , not before
        so it's exactly "wss://my-ngrok-address.ngrok-free.app:10000" and not "ws://wss://...."

        in other words:
        wss://
        address = my-ngrok-address.ngrok-free.app
        :
        port = 10000