You don’t need certs for locahost
If you are not on localhost you will need certs
You’ll have some fun with IP addresses as it’s just not supported really, throw a “fake/test domain” at it using /etc/hosts might help?
/etc/hosts
is the TLDR on that.
See also