use nanohttpd for android, use cocoahttpserver for ios