Do you mean a domain name? If so, I am 99% sure that federation (so your instance communicating with other instances) requires https, which would require you to use a domain name.
If you just wanted to run an isolated/private instance, then a domain name wouldn't be required.