First you need some form of app on your phone to “convert” it into an IP camera, I have used a few different types with varying degrees of results… dependent on the type and ages of phone it seems. I use Android, and will try to grab a link to two in a moment…
Then once that IP camera app is running, it usually displays a URL that you can connect to, from within your network… that is the address you enter into your widget.