Search Unity

Resolved How to determine a list of IP addresses on the network using Android?

Discussion in 'Multiplayer' started by Magasenakwa, Dec 15, 2023.

  1. Magasenakwa


    Oct 13, 2018

    I am trying to build an app that is meant to run on the Quest and scan the local network for any server apps. Doing this in Windows takes like 15 lines of code or something ridiculous like that but since I can't use Process.Start() on Android builds I have no idea how to call the local Android command that I need.

    To be a bit more precise, on Windows I just need to call "arp -n" to fetch a list of all IP addresses assigned on the current network. This is perfect for my needs. On Android I need to call "ip" with a bunch of params but it basically returns the same info and is what I need. I just don't know how to call local Android apps from within Unity...

    The only advice I have been able to get so far is to write local code for Android and then use Linux (on the Meta Quest????) to call the Native Android code... Yeah, I am nowhere on this. Can anyone please give me some guidance on what the Android version of Process.Start() looks like?

    Thanks in advance
  2. Lukeesta


    Jan 7, 2016
    Magasenakwa likes this.