Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

4.18 Current State of HTML5 Multiplayer?

What's the current state of multiplayer in HTML5 in 4.18?

I found this post from ~4.10 that says that HTML5 games can connect to a standalone game server but not to each other. https://answers.unrealengine.com/questions/358636/html5-networking-listen-server-issues.html

Is that still the case? If it is, the reasoning there is that browsers can't accept connections from other browsers due to browser standards. Isn't that exactly what WebRTC solves though using a webserver to negotiate the direct connection? Is it possible to use the webserver to negotiate handshakes between browsers using WebRTC to allow an HTML5 game in a browser to host a game?

Product Version: UE 4.18 Preview
more ▼

asked Oct 22 '17 at 03:27 PM in Packaging & Deployment

avatar image

68 4 11 15

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

This reasoning is definitely the correct one. It is not possible to connect from web browsers directly out to other web browsers or to TCP/UDP based web servers, because this would allow web sites to use connected clients as web servers, and implement e.g. BitTorrent nodes behind user's backs with ease, not that it's impossible now, but considerably harder. The reason is not for example due to incompatible standards.

There are two ways to approach this: 1. Projects like WebSockify allow one to set up a WebSockets based server that routes communication over to a TCP server. This can allow an in-browser WebSockets client to connect out to servers. 2. WebRTC has a P2P matching mechanism with STUN and TURN server architecture to enable two browsers to do P2P data channels connection. This is somewhat involved but currently the only way that two browsers can do a "real" P2P communication without intermediaries.

more ▼

answered Jan 18 '18 at 04:20 PM

avatar image

1.2k 15 4 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

that we can connect to a server like node js without having to spend 4 weeks it will be fine

more ▼

answered Dec 11 '17 at 05:16 PM

avatar image

66 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question