server to listen to specified interface

change server to accept interface to listen in command line argument