How should I get user input in a Dedicated Server build?

I’m trying to create a simple multiplayer demo using mirror api in client-server mode (I have a server with public ip, but I don’t have enough knowledge about NAT), how should I get the user’s input in Dedicated Server build?