kirillzyusko / react-native-wifi-p2p

Library that provide access for working with wi-fi direct (p2p) module in android.
174 stars 32 forks source link

Is there a way to get device Address with ipv4 format ? #52

Open hhj0988a opened 2 years ago

hhj0988a commented 2 years ago

Hi I am making project with android tab that will communicate via tcp-socket through wifi-internet. So I used this module to get all devices list in same wifi-network that I can connect to. But it returns only mac addresses. Tcp library that i am using allows only ipv4 format address. Is there any way to get device Address with ipv4 format ?

kirillzyusko commented 2 years ago

Hi @hhj0988a

Can't you retrieve ip address using react-native-device-info and send it afterwards to group owner?

hhj0988a commented 2 years ago

Thank you for your fast answer ^^ i'll try right now