0
Fixed
Martin Lang 2 months ago in Server Solutions • updated by Oksana (expert) 1 month ago 8

hi,


IR.GetCurrentLocalIPInfo

is not working anymore on server version 1.1.1.11210


ciao

martin

Waiting for user's reply

Hello Martin,


What server do you use (WIN, UMC, OnBox...)? How many interfaces does it have?

Can you give us your test project?

raspberry, the result of IR.GetCurrentLocalIPInfo()[0].IP is "undefined". also netmask doesn't work. mac and name "eth0" is working.


there is only one interface on the raspberry active, wlan and bluetooth are disabled.


+1

looks like it's working again with 1.1.2.11403

Looks like this recently stopped working in the latest iridium_pro_setup_1.1.1.474 for Windows PC, Not server. The LAN port used to return it IP and now returns 169.254.254.95

[10-03-2017 10:40:25.580] INFO SCRIPT WiFi Name = Wi-Fi
[10-03-2017 10:40:25.589] INFO SCRIPT IP = 169.254.103.3
[10-03-2017 10:40:25.591] INFO SCRIPT Mask = 0.0.0.0
[10-03-2017 10:40:25.592] INFO SCRIPT MAC = B0-C0-90-8F-0A-31
[10-03-2017 10:40:25.592] INFO SCRIPT Lan Name = Local Area Connection* 11
[10-03-2017 10:40:25.593] INFO SCRIPT IP = 169.254.254.95
[10-03-2017 10:40:25.594] INFO SCRIPT Mask = 0.0.0.0
[10-03-2017 10:40:25.594] INFO SCRIPT MAC = 12-C0-90-8F-0A-31


Code

if (typeof IR.GetCurrentLocalIPInfo == "function") {
// [0] = WiFi [1] = LAN
iPInfo = IR.GetCurrentLocalIPInfo();
IR.Log("WiFi Name = " + iPInfo[0].Name);
IR.Log("IP = " + iPInfo[0].IP);
IR.Log("Mask = " + iPInfo[0].Mask);
IR.Log("MAC = " + iPInfo[0].MAC);
if (iPInfo[1] != null) {
IR.Log("Lan Name = " + iPInfo[1].Name);
IR.Log("IP = " + iPInfo[1].IP);
IR.Log("Mask = " + iPInfo[1].Mask);
IR.Log("MAC = " + iPInfo[1].MAC);
}
}
else IR.Log("No IP Info.");


Hello Mike,


Last version is 1.1.2 (and we have a beta 1.1.3)

Just tested with 1.1.2 and still reports 169.254.254.95. This used to work. I am using i3Pro and not the Server.