Start Quake with the command line and add -dedicated. It will open a DOS terminal window. Then use the connect IP.address.here command inside Quake console. That's it.
If you want to play on the server, too replace -dedicated with -listen 32, where 32 is the max number of players you allow on your server.