program name and default port can be specified