![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | 4rom |
I get _do_handshake: TLS handshake error: -30592 on Godot 4.0.3 on client side when I’m trying to connect to my server behind cloudflare.
server side codes:
var peer = WebSocketMultiplayerPeer.new()
func _init():
peer.supported_protocols = ["ludus"]
func createServer():
multiplayer.multiplayer_peer = null
var server_certs = load("res://certs/server.crt")
var server_key = load("res://certs/server.key")
var server_tls_options = TLSOptions.server(server_certs, server_key)
peer.create_server(DEF_PORT,"*",server_tls_options)
multiplayer.multiplayer_peer = peer
multiplayer.peer_connected.connect(self._peer_connected)
client side:
func _on_cli_pressed():
multiplayer.multiplayer_peer = null
var client_tls_options = TLSOptions.client_unsafe()
peer.create_client("wss://XXX.XXX.XXX:2096" ,client_tls_options)
What have you tried so far? Since this is a very generic error you need to narrow it down. What happens if you don’t use client_unsafe() and instead use the correct certificate for the client? TLSOptions — Godot Engine (stable) documentation in English
svdragster | 2023-06-14 12:00