Commit 975c9217 by Administrator

端口调整

1 parent f4cbcf78
......@@ -6,7 +6,7 @@ import 'package:flutter/services.dart';
class LocalServerService {
// 启动本地HTTP服务器
Future<HttpServer> startLocalServer() async {
HttpServer server = await HttpServer.bind(InternetAddress.loopbackIPv4, 0);
HttpServer server = await HttpServer.bind(InternetAddress.loopbackIPv4, 35982);
print('本地服务器启动在端口: ${server.port}');
server.listen((HttpRequest request) async {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!