You were subject to the full force of the legal system way before you set up a port on a server.
And you can totally set up a port on a server to allow users to voluntarily enter some information and do stuff with it. The law does not prevent that at all.