Android Question Ethernet ip address

mmanso

Active Member
Licensed User
Longtime User
Hi there

I’m working on an android box that has Wi-Fi and a network adapter.

Using GetMyIp from serversocket I always get the Wi-Fi ip. Is there any way to explicitly request the Ethernet ip? Or all the machine actual ip addresses.

Thanks in advance.
 

thetahsk

Active Member
Licensed User
Longtime User
Hi there

I’m working on an android box that has Wi-Fi and a network adapter.

Using GetMyIp from serversocket I always get the Wi-Fi ip. Is there any way to explicitly request the Ethernet ip? Or all the machine actual ip addresses.

Thanks in advance.
Take this

and change to
B4X:
Log(jo.RunMethod("getIp", Array("eth0")))
 
Last edited:
Upvote 0
Top