Indeed, if the server is running on a computer in your local network, all you must do is specify that computers local IP instead of "localhost". If you want to be able to connect to it from outside of the local network, you'll have to set up port forwarding in your router.