Not sure exactly what you want, but like this may be what you want. https://github.com/PeterDaveHello/ipinfo.tw
There are simpler solutions that are just a php script on your web server if you’re only interested in IP address (I couldn’t find a good example quickly on mobile)
Dbus attempts to provide a standardized system for inter process communication (IPC) without the complexity of managing individual connections between each and every process that needs to share certain types of data.
https://en.m.wikipedia.org/wiki/D-Bus