Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to check online/offline clients?

Discussion in 'Netcode for GameObjects' started by Jicefrost, Jul 18, 2022.

  1. Jicefrost

    Jicefrost

    Joined:
    May 13, 2019
    Posts:
    40
    I got server application. Dedicated server. Using UnetTransport clients connected via IP/port. Server can see them properly. How can I check is "client 1 still online" or "client 2 already offline"?
     
  2. itisMarcii_

    itisMarcii_

    Joined:
    Apr 5, 2022
    Posts:
    111
    There is no such thing as online or offline. There is only connected or disconnected. If you wanna keep data about a client that did disconnect, you need an identifier and a database.