Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

wi-fi direct

Discussion in 'Multiplayer' started by Dosorvet, May 5, 2018.

  1. Dosorvet

    Dosorvet

    Joined:
    Jan 16, 2018
    Posts:
    17
    Hello everyone!
    I wanna create an android game with Unity,that's based on wi-fi direct.
    actually, a local wi-fi multiplayer game.
    Is it possible to make this,in our game?
    I mean,we make a multiplayer game which works with wi-fi direct,not internet,
    And,well ,players are near together.
    Is it possible?
     
    Last edited: May 5, 2018
  2. thesupersoup

    thesupersoup

    Joined:
    Nov 27, 2017
    Posts:
    70
    I'm not 100% certain on the specifics of wi-fi direct, but I have to imagine it provides each device connected to the ad-hoc network a particular IP address. In theory I don't see any reason it shouldn't work, but you'll likely have to be intimately familiar with the way Android handled ad-hoc networks, and Unity won't likely natively support it aside from handling server/client IP business.
     
    Dosorvet likes this.
  3. forcepusher

    forcepusher

    Joined:
    Jun 25, 2012
    Posts:
    227
    You can directly connect to a server running on another device if you are connected to the same Wi-Fi.
    It's as simple as finding your device LAN address and typing it in the client.
    It should be something like 192.168.1.24
     
    Dosorvet likes this.
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Dosorvet likes this.
  5. thesupersoup

    thesupersoup

    Joined:
    Nov 27, 2017
    Posts:
    70
  6. albertmort

    albertmort

    Joined:
    Sep 27, 2021
    Posts:
    1
    Does anyone know how a cheap router differs from an expensive one? I bought a fairly cheap router, but it works fine
     
  7. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    A cheap router may have fewer features, slower maximum speeds, or be less reliable. Check out reviews and specs for the device for actually relevant information.
     
  8. annalonco

    annalonco

    Joined:
    Sep 29, 2021
    Posts:
    1
    I don't think that you will have any reasons for creating your idea. But I believe that Unity will not initially support it, except for server processing.