Code Monkey home page Code Monkey logo

Comments (13)

tomoprime avatar tomoprime commented on June 12, 2024

Update: running the above project in Godot 3.2 Alpha 2 has no issues as expected.

from webrtc-native.

Faless avatar Faless commented on June 12, 2024

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

it is strange. I started up a nodejs instance on a mac.
https://github.com/godotengine/godot-demo-projects/tree/master/networking/webrtc_signaling/server_node

Then on Windows I connected to it with Godot 3.2 for the webrtc_signaling demo using the address of the mac. Without adding this GDNative plugin to the webrtc_signaling demo project folder.

But after adding this plug as required. The webrtc_signaling demo cannot make a connection to the Mac that is running the nodejs server code.

ERROR: _get_socket_error: Socket error: 10022
At: drivers/unix/net_socket_posix.cpp:198
ERROR: connect_to_host: Connection to remote host failed!
At: drivers/unix/net_socket_posix.cpp:425
Signaling server disconnected: 1000 - Unknown
Disconnected: 1000: Unknown

Update:
However if I go into Project Settings -> GDNative, and disable both webrtc.tres and webrtc_debug.tres I am then able to connect to the remote nodejs server.

Signaling server connected with ID: 1
Joined lobby HceN79Uj26F820i3

from webrtc-native.

Faless avatar Faless commented on June 12, 2024

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

from webrtc-native.

Faless avatar Faless commented on June 12, 2024

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

Sorry just wanted to note I had used the 64bit build of Windows with the 0.3 Plugin release.
https://downloads.tuxfamily.org/godotengine/3.2/alpha2/Godot_v3.2-alpha2_win64.exe.zip

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

Sorry if this appears as a duplicate msg as my last post was lost somehow. Just wanted to point out I had used the Win64 binary of Godot 3.2 Alpha 2 with the prebuilt v0.3 WebRTC plugin.

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

Note I had only tested Signaling in that example. I just checked out your bomber-rtc demo to gain some more clarity on what works...

When I:
Enable the webrtc-native plugin:

  • Local Signaling and WebRTC works
  • Remote Signaling fails, doesn't make it to WebRTC step

Disable the webrtc-native plugin:

  • Remote Signaling works but WebRTC fails

from webrtc-native.

dryw avatar dryw commented on June 12, 2024

I can confirm the above behaviour both in 3.2 Alpha 1 and Alpha 2. bomber-rtc works as expected in linux but on windows I get the following errors when using a remote signalling server:

webrtc-native plugin disabled:

  • Windows client connects to signalling server and receives a lobby ID.
  • Throws an ERR_UNCONFIGURED error when an RPC is made (to be expected)
  • Even just building and then deleting the copied-over webRTC dll will get you to this state.

webrtc-native plugin enabled:

  • Socket error 10022 (drivers/unix/net_socket_posix.cpp:197 @ _get_socket_error())
  • Signalling server does not even see the request

Changing the port to a lower value, such as 567 eliminates the socket error but then produces:
thirdparty\mbedtls\library\ssl_tls.c:4064: unknown record type thirdparty\mbedtls\library\ssl_tls.c:4344: ssl_get_next_record() returned -29184 (-0x7200) thirdparty\mbedtls\library\ssl_cli.c:1506: mbedtls_ssl_read_record() returned -29184 (-0x7200) ERROR: StreamPeerMbedTLS::_do_handshake: TLS handshake error: -29184 At: modules\mbedtls\stream_peer_mbedtls.cpp:91 mbedtls error: returned -0x7200

This seems to be the case for both 32/64 bit windows.

If I connect to a local signalling server, everything appears to work.

Will look into rebuilding the plugin against the latest headers. Let me know if there's any specific debugging information that would be helpful!

from webrtc-native.

tomoprime avatar tomoprime commented on June 12, 2024

@dryw Thank you for testing my Windows case as well. It's good to know Linux is ok. I was trying to build the plugin for MacOS but the native code reference for the webrtc_ios target was pushing over 10GB to download on my machine and I ran out of disk space. They say you need under 6GB but my sync grew much larger.

Btw I tested a different port when trying the bomber example on Heroku which might work on linux,
e.g.: ws://bomber-rtc.herokuapp.com

Heroku sets it's own ports so you must update line 6 in server.js to load by ENV:
const PORT = process.env.PORT || 9080;

Note: @Faless it may be ideal to create an external bomber-rtc app on free Heroku to test remote Signaling code changes for godot. The URL given above isn't set up as I reserved a different name to test so not to take over ownership.

from webrtc-native.

Faless avatar Faless commented on June 12, 2024

Discussion moved to a separate issue (#6).
Clsoing.

from webrtc-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.