- Home /
Question by
BrianAwesomenes · Apr 04, 2018 at 10:25 PM ·
networkingmultiplayermultiplayer-networking
Do Network Messages Use UDP or TCP?
I was implementing a multiplayer system using network messages as described in this doc when I realized that it does not specify whether it is using UDP or TCP. I would like to know which this uses so I can know if i can use this for what I am trying to do.
Comment
Answer by Cornelis-de-Jager · Apr 04, 2018 at 10:29 PM
It would be TPC since the order the message arrives in matters.
Answer by Bunny83 · Apr 04, 2018 at 11:40 PM
The underlying transport protocol is usually UDP. TCP is only used when using websockets. Unity implements a reliable and an unreliable layer on top of UDP. However you shouldn't care too much about the actual transport protocol used.