I'm trying to use a package called public-ip but when I use the example on the github I can't use the variables outside of the async code
I have tried various solutions by making functions
function GetAddress() {
return await publicIp.v4()
}
but these just return a Promise and I have tried to google on how to not get a promise / get the IP out of it but without any luck.
Any help is appreciated