Possible to test mastodon on local network?

Is it possible to test mastodon on a raspberry pi on my internal network with local IP? Or do you need a domain right away?