Earlier quoted context omitted.
wait but this should only work on locals / close networks shouldn't it ? i thought you still need some proxying in other cases (hence the turn) - i really need to study this again asap tough
STUN gives back your public IP:port, TURN gives you assigned proxied IP:port. You take that data and send to the peer over signaling connection, and they call you back on that IP:port. Most NAT implementations make and keep a temporary mapping between public port to private IP consistent[1] for few minutes, and not completely random per destination[2], so it usually works. 1: e.g. router.public.ip.example:23456 192.1…
Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
51–60 of 71 posts
Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#52Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#53HN should add downvote option.
Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#54Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#55I've been exploring PeerJS ( https://peerjs.com/ ) recently. This seems like a similar concept. Would it give me anything that PeerJS doesn't?
Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#56It'd be cool if you could easily publish multiplayers games to itch.io or similar websites from Godot or Unity and have automatic matchmaking: the first player to visit the game pages gets matched automatically with the next, and so on. Is there anything like that?
Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#571) Serverless isn't really serverless and we are sick of this AWS speak. The trend lasted briefly but it isn't appealing when you are metered for every little thing and unable to SSH into a host and resolve issues
2) You can already do matchmaking easily with FOSS self-hosted solutions. These don't cost a lot of computing or bandwidth but some developers think its a chaotic and resource heavy problem.
Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#58Direct link to the underlying source code.
Re: Make any site multiplayer in a few lines. Serverless WebRTC matchmaking
#59Earlier quoted context omitted.
Do those laws even apply to P2P apps without central servers?
They do, but unlike what the OP claims, you do not need to age verify your site just because you added a social element. If the purpose is not to distribute pornography/other age restricted materials and you are able to moderate the site (ie: are not facebook scale), this is not required. The law sucks but the misinformation around it is getting out of hand.