wi-fi direct

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?

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.

1 Like

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

1 Like

My guess is you’ll need to write your own plugin for Unity that implements everything on this page:

After that I think you should be able to use any available networking API as if it was a local network.

Documentation on Android plugins:

1 Like

I found this in my scampers. It might be worth looking in to:

1 Like

Does anyone know how a cheap router differs from an expensive one? I bought a fairly cheap router, but it works fine

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.

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.