add commandline for http and socket port