Search Unity

Question Intercepting and redirecting unity game network traffic to a specified network route.

Discussion in 'Netcode for GameObjects' started by A_Alyahya, Jun 21, 2021.

  1. A_Alyahya

    A_Alyahya

    Joined:
    Jun 16, 2021
    Posts:
    3
    I am currently working on a network project, and I am trying to intercept Unity multiplayer game network traffic and redirect it to a specified network route using Photon or Mirror or MLAPI networking engine; however, I could not find a script file or code that is responsible for the network routing and packet forwarding to modify the algorithm or to override existing methods.

    Would anyone please help me in this situation to guide me in the right direction? Knowing that I am new to the Unity platform.
     
  2. luke-unity

    luke-unity

    Joined:
    Sep 30, 2020
    Posts:
    306
    There is no code/file which is responsible for that in the UnityEngine. These libraries use very different ways for doing network traffic. In the end they all use sockets so you would have to inject something on the socket level or lower. There are some operation system specific ways for accessing network traffic. I'd start with looking at tools like "Clumsy" which do this.
     
    A_Alyahya and swe_manal like this.
  3. A_Alyahya

    A_Alyahya

    Joined:
    Jun 16, 2021
    Posts:
    3
    :confused: I am stuck looking for ways to find where and how to inject something on the socket level. Would you please explain more? example?