Hello,
please have a look into the provided example "DeviceIntegration". There you will find the implementation that a counter UI is incremented while the user presses a hardware button. In a similar manner, you can transfer the IP address as a number to your UI.
If you are looking for the answers concerning IP connection and IP configuration, let me refer to the samples provided by ST.
I hope this gives you some hints...
Best regards,
Manfred