When you start the server, you can specify the IP address and port you'd like it to use:
Here 0.0.0.0 means, listen on whatever IP address the machine uses.
If this isn't what you were looking for, ask again, but please provide more information. What are you trying, what is happening, how is that different than what you want? The more details you can include in your question, the more likely you are to get a good answer.
--Ned.