B4J Question Get LocalIP

Blueforcer

Well-Known Member
Licensed User
Longtime User
I trying to get the loacl IP from the device with

B4X:
Dim IP As ServerSocket
IP.Initialize(8765, "")
dim myIp as String =IP.GetMyIP
IP.close

But i get this error:
B4X:
Dez 04 09:36:50 awtrix-server java[1695]: main._appstart (java line: 151)
Dez 04 09:36:50 awtrix-server java[1695]: java.lang.ClassFormatError: Unknown constant tag 76 in class file java/n
Dez 04 09:36:50 awtrix-server java[1695]:         at java.net.NetworkInterface.<clinit>(NetworkInterface.java:56)
Dez 04 09:36:50 awtrix-server java[1695]:         at anywheresoftware.b4a.objects.SocketWrapper$ServerSocketWrappe
Dez 04 09:36:50 awtrix-server java[1695]:         at de.awtrix.main._appstart(main.java:151)
Dez 04 09:36:50 awtrix-server java[1695]:         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Dez 04 09:36:50 awtrix-server java[1695]:         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
Dez 04 09:36:50 awtrix-server java[1695]:         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
Dez 04 09:36:50 awtrix-server java[1695]:         at java.lang.reflect.Method.invoke(Method.java:498)
Dez 04 09:36:50 awtrix-server java[1695]:         at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
Dez 04 09:36:50 awtrix-server java[1695]:         at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
Dez 04 09:36:50 awtrix-server java[1695]:         at de.awtrix.main.main(main.java:28)

What does this mean?
 

Blueforcer

Well-Known Member
Licensed User
Longtime User
Thank you for the hint.
I didnt saw that my java version on the raspberry was lower than my project.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…