Skip to content Skip to sidebar Skip to footer

Connecting Two Android Devices Using Wifi

I need to connect two android devices using wifi. One device is a server, which sends certain commands to second device. My question is how can I get IP address of the server from

Solution 1:

Either you have a fixed IP on the Server or u can implement some kind of Broadcast every n-time, where only your device answers.

Maybe you can send a UDP Packet with some HELLO Request to all IPs in your Subnet and when the Server receives it he responses with an ACK Paket.

If you want to check if a Device is available on the network try to ping it and then try to connect.

Solution 2:

Try this.

Using this I am able to find DLNA devices on wifi network

Post a Comment for "Connecting Two Android Devices Using Wifi"