added hostname support to socketio server