James-Frowen / SimpleWebTransport

WebSocket Server and client for unity designed for Mirror Networking
MIT License
62 stars 18 forks source link

dedicated server outside unity using C# console #7

Closed jeffabner closed 1 year ago

jeffabner commented 1 year ago

image Here's an example of how the progress is going, but after connecting, it disconnects

jeffabner commented 1 year ago

[SimpleWebTransport] ERROR: [SimpleWebTransport] Connection closed before handshake UnityEngine.Logger:Log (UnityEngine.LogType,object) Mirror.SimpleWeb.Log:Error (string,bool) (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Common/Log.cs:93) Mirror.SimpleWeb.ClientHandshake:TryHandshake (Mirror.SimpleWeb.Connection,System.Uri) (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Client/StandAlone/ClientHandshake.cs:53) Mirror.SimpleWeb.WebSocketClientStandAlone:ConnectAndReceiveLoop (System.Uri) (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Client/StandAlone/WebSocketClientStandAlone.cs:68) Mirror.SimpleWeb.WebSocketClientStandAlone/<>c__DisplayClass5_0:b__0 () (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Client/StandAlone/WebSocketClientStandAlone.cs:36) System.Threading.ThreadHelper:ThreadStart ()

jeffabner commented 1 year ago

[SimpleWebTransport] WARN: [SimpleWebTransport] Failed Handshake with ws://localhost:7778/ UnityEngine.Logger:Log (UnityEngine.LogType,object) Mirror.SimpleWeb.Log:Warn (string,bool) (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Common/Log.cs:82) Mirror.SimpleWeb.WebSocketClientStandAlone:ConnectAndReceiveLoop (System.Uri) (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Client/StandAlone/WebSocketClientStandAlone.cs:71) Mirror.SimpleWeb.WebSocketClientStandAlone/<>c__DisplayClass5_0:b__0 () (at ./Library/PackageCache/com.james-frowen.simplewebtransport@1.6.4/Runtime/Client/StandAlone/WebSocketClientStandAlone.cs:36) System.Threading.ThreadHelper:ThreadStart ()

jeffabner commented 1 year ago

unity-realtime-networking-server-main (2).zip Realtime Networking Server.sln

jeffabner commented 1 year ago

detail, I'm using mirror with the simpletransport socket that comes by default, using tank's example

jeffabner commented 1 year ago

https://assetstore.unity.com/packages/tools/network/realtime-tcp-udp-networking-231173

I'm basing myself on this project that has TCP and UDP

James-Frowen commented 1 year ago

2 things to make sure you are doing:

D4rWiNSS commented 1 year ago

I am doing the same thing. I am creating the server in a c# console so this has helped me as welll thanks!