cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the network Ip address in sapui5

ismail-flane
Explorer
0 Kudos

I am trying to find a way to get the local/network IP address in my controller for a Fiori project. I am not able to use java.net in sapui5

var ip = java.net.InetAddress.getLocalHost();
var ipAdd = ip.getHostAddress();

any suggestions?

Thanks

gregorw
Active Contributor
0 Kudos

Could you explain why you would need the local IP?

Accepted Solutions (1)

Accepted Solutions (1)

CristianBabei
Contributor
0 Kudos

Yes you can, debug this page http://net.ipcalf.com/

Here someone ask about it, and as you can see in his webside, at the end he archived it.

So you can also debug his page, or check the people answer, but with the first one it should be enough.

Answers (0)