Choosing port and interface.

I would like to choose port and interface used by the server.