Hi, Thanks for your message. No i don’t get any error. I get an error of course when there is no WiFi connected. Otherwise it just give 0 IP and Subnet.
I tried that. Still 0 IP. It works with other routers but not with that Huawei ones. Now I cant say there is something wrong with plugin also the router works fine with Android app.
Yes I saw that issue but because of inactivity i posted my own. Thanks for your help
@nomanshah I too was facing the same issue on my iPhone. when i check the native code and printed all the interfaces that it loops looks like this,
[
“lo0 :: 127.0.0.1”,
“lo0 :: 0.0.0.0”,
“lo0 :: 0.0.0.0”,
“en0 :: 0.0.0.0”,
“en0 :: 192.168.18.8”,
“en0 :: 0.0.0.0”, "en0 :: 0.0.0.0",
“awdl0 :: 0.0.0.0”,
“utun0 :: 0.0.0.0”,
“utun1 :: 0.0.0.0”
]
Plugin is looping all the interfaces of en0 entries and returns the last en0 value to us which in my case it’s 0.0.0.0. i think you’re also facing this same issue.
I just modified the plugin code to stop updating the variable when en0 has some IP which is not equal to 0.0.0.0. and it worked for me.
This will make sure that the IP is only used if it’s not 0.0.0.0. I’m sure there are more elegant ways to solve this, but I’m not an expert and it works for me.