connect from webserver and commandline