Speidy674 / Light-Reflective-Mirror

A relay transport for mirror.
MIT License
38 stars 9 forks source link

I can't find a server when playing with WebGL build in V13 #3

Open sseiichi opened 1 year ago

sseiichi commented 1 year ago

Hi,

I tried V13 and I found I can't find a server when playing with WebGL build via SimpleWebTransport in V13 release. I can find a server with Windows build and Unity's play mode via SimpleWebTransport. I used LRM-Node.zip of V13 release as a relay server.

sseiichi commented 1 year ago

With revision 9b7c45b56c9e41294d7f6aa039e4ed9131165b50, I can find a server when playing with WebGL.

Speidy674 commented 1 year ago

when I make a test build. whit SimpleWebTransport it works. can give a little more info so we can find out what the problem is. did you try to test another appid setting in the other tab?

sseiichi commented 1 year ago

I used LRMTestScene for test and appid is 1.

Here are screenshots. rapture_20230316205303 rapture_20230316205314 rapture_20230316205324 rapture_20230316205337 rapture_20230316210947

rapture_20230316205554

rapture_20230316210527

LRM-Node's config.json

{
  "TransportClass": "MultiCompiled.KcpWebCombined",
  "AuthenticationKey": "Secret Auth Key",
  "TransportPort": 7777,
  "UpdateLoopTime": 10,
  "UpdateHeartbeatInterval": 100,
  "RandomlyGeneratedIDLength": 5,
  "UseEndpoint": true,
  "EndpointPort": 8080,
  "EndpointServerList": true,
  "EnableNATPunchtroughServer": true,
  "NATPunchtroughPort": 7776,
  "UseLoadBalancer": false,
  "LoadBalancerAuthKey": "AuthKey",
  "LoadBalancerAddress": "127.0.0.1",
  "LoadBalancerPort": 7070,
  "LoadBalancerRegion": 1
}
Biebras commented 1 year ago

I think nat-punch does not work on WebGL.

It should work without nat-punch as it works for us.

sseiichi commented 1 year ago

I'm not using NAT Punch as you can see my screenshots.

sseiichi commented 1 year ago

@Biebras I would appreciate if you could upload your project that works.

Biebras commented 1 year ago

I'm developing a game for my job, so I can't share content. When you request a server list, what error are you getting?