{"id":84290,"date":"2026-07-26T10:41:45","date_gmt":"2026-07-26T02:41:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84290.html"},"modified":"2026-07-26T10:41:45","modified_gmt":"2026-07-26T02:41:45","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9%e6%89%8b%e6%9c%ba%e8%ae%bf%e9%97%ae%e7%94%b5%e8%84%91%e6%9c%ac%e5%9c%b0%e7%9a%84%e5%89%8d%e7%ab%af%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bd%91%e9%a1%b5%ef%bc%88vite%e7%ad%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84290.html","title":{"rendered":"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09"},"content":{"rendered":"<p>\u8981\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u4e0a\u8fd0\u884c\u7684\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u6bd4\u5982 Vite\u3001Webpack Dev Server\u3001http-server \u7b49&#xff09;&#xff0c;\u6838\u5fc3\u539f\u7406\u662f\u8ba9\u624b\u673a\u548c\u7535\u8111\u5904\u4e8e\u540c\u4e00\u5c40\u57df\u7f51&#xff0c;\u5e76\u8ba9\u670d\u52a1\u5668\u76d1\u542c\u5c40\u57df\u7f51\u7684 IP \u5730\u5740\u3002\u4e0b\u9762\u662f\u5b8c\u6574\u6b65\u9aa4\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<hr \/>\n<h3>1. \u57fa\u672c\u6761\u4ef6<\/h3>\n<ul>\n<li>\u624b\u673a\u548c\u7535\u8111\u8fde\u63a5\u540c\u4e00\u4e2a Wi-Fi&#xff08;\u6216\u8005\u7535\u8111\u7528\u7f51\u7ebf\u3001\u624b\u673a\u8fde\u540c\u4e00\u8def\u7531\u5668\u7684 Wi-Fi&#xff09;\u3002<\/li>\n<li>\u7535\u8111\u4e0a\u5df2\u7ecf\u542f\u52a8\u4e86\u4e00\u4e2a\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u4f8b\u5982 http:\/\/localhost:3000 \u80fd\u6b63\u5e38\u8bbf\u95ee&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>2. \u83b7\u53d6\u7535\u8111\u7684\u5c40\u57df\u7f51 IP<\/h3>\n<h4>Windows<\/h4>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26&#xff08;CMD&#xff09;&#xff0c;\u8f93\u5165 ipconfig<\/li>\n<li>\u627e\u5230\u6b63\u5728\u4f7f\u7528\u7684\u7f51\u7edc\u9002\u914d\u5668&#xff08;\u901a\u5e38\u662f\u201c\u65e0\u7ebf\u5c40\u57df\u7f51\u9002\u914d\u5668 Wi-Fi\u201d\u6216\u201c\u4ee5\u592a\u7f51\u9002\u914d\u5668\u201d&#xff09;&#xff0c;\u8bb0\u4e0b IPv4 \u5730\u5740&#xff0c;\u4f8b\u5982 192.168.1.100<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726024144-6a6573e826ae6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n<h4>macOS \/ Linux<\/h4>\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef&#xff0c;\u8f93\u5165 ifconfig \u6216 ip addr<\/li>\n<li>\u627e\u5230 en0&#xff08;Wi-Fi&#xff09;\u6216 eth0&#xff08;\u6709\u7ebf&#xff09;&#xff0c;\u627e\u5230 inet \u540e\u9762\u7684\u5730\u5740&#xff0c;\u4f8b\u5982 192.168.1.100<\/li>\n<\/ul>\n<hr \/>\n<h3>3. \u914d\u7f6e\u670d\u52a1\u5668\u5141\u8bb8\u5c40\u57df\u7f51\u8bbf\u95ee<\/h3>\n<p>\u4e0d\u540c\u7684\u5f00\u53d1\u670d\u52a1\u5668\u9ed8\u8ba4\u53ea\u76d1\u542c localhost&#xff08;127.0.0.1&#xff09;&#xff0c;\u9700\u8981\u6539\u4e3a\u76d1\u542c 0.0.0.0&#xff08;\u6240\u6709\u7f51\u7edc\u63a5\u53e3&#xff09;\u3002<\/p>\n<h4>\u5e38\u89c1\u5de5\u5177\u914d\u7f6e\u65b9\u6cd5<\/h4>\n<table>\n<tr>\u5de5\u5177 \/ \u6846\u67b6\u5982\u4f55\u5141\u8bb8\u5c40\u57df\u7f51\u8bbf\u95ee<\/tr>\n<tbody>\n<tr>\n<td>Vite<\/td>\n<td>\u9ed8\u8ba4\u652f\u6301\u3002\u542f\u52a8\u65f6\u81ea\u52a8\u663e\u793a Network \u5730\u5740&#xff0c;\u6216\u8fd0\u884c npm run dev &#8212; &#8211;host&#xff0c;\u6216\u5728\u9879\u76ee\u7684 vite.config.js \u6587\u4ef6\u4e2d&#xff0c;\u4f60\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a server \u914d\u7f6e&#xff0c;\u5c06 host \u8bbe\u7f6e\u4e3a \u20180.0.0.0\u2019\u3002\u8fd9\u6837&#xff0c;\u4f60\u7684\u670d\u52a1\u5c31\u4f1a\u76d1\u542c\u6240\u6709\u7f51\u7edc\u63a5\u53e3&#xff0c;\u5305\u62ec\u5c40\u57df\u7f51\u548c\u516c\u7f51\u5730\u5740\u3002\u4f8b\u5982&#xff1a;import { defineConfig } from &#039;vite&#039;; export default defineConfig({ server: { host: &#039;0.0.0.0&#039; } });<\/td>\n<\/tr>\n<tr>\n<td>Create React App<\/td>\n<td>\u9ed8\u8ba4\u652f\u6301\u3002\u542f\u52a8\u540e\u63a7\u5236\u53f0\u4f1a\u663e\u793a\u5c40\u57df\u7f51\u5730\u5740&#xff0c;\u5982 http:\/\/192.168.1.100:3000<\/td>\n<\/tr>\n<tr>\n<td>Webpack Dev Server<\/td>\n<td>\u5728\u914d\u7f6e\u4e2d\u6dfb\u52a0 host: &#039;0.0.0.0&#039;&#xff08;\u6216\u5728 package.json \u7684 scripts \u4e2d\u52a0 &#8211;host 0.0.0.0&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>http-server<\/td>\n<td>\u8fd0\u884c\u65f6\u52a0\u53c2\u6570&#xff1a;http-server -a 0.0.0.0<\/td>\n<\/tr>\n<tr>\n<td>Next.js<\/td>\n<td>\u8fd0\u884c npm run dev -H 0.0.0.0 \u6216\u5728 package.json \u4e2d\u52a0 -H 0.0.0.0<\/td>\n<\/tr>\n<tr>\n<td>Angular CLI<\/td>\n<td>ng serve &#8211;host 0.0.0.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b&#xff08;Vite&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">npm<\/span> run dev &#8212; <span class=\"token parameter variable\">&#8211;host<\/span><\/p>\n<p>\u6216&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> defineConfig <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;vite&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token function\">defineConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token literal-property property\">server<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">host<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;0.0.0.0&#039;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u63a7\u5236\u53f0\u4f1a\u8f93\u51fa\u7c7b\u4f3c&#xff1a;<\/p>\n<p>  \u279c  Local:   http:\/\/localhost:5173\/<br \/>\n  \u279c  Network: http:\/\/192.168.1.100:5173\/<\/p>\n<hr \/>\n<h3>4. \u68c0\u67e5\u5e76\u5173\u95ed\u7535\u8111\u9632\u706b\u5899&#xff08;\u6216\u6dfb\u52a0\u89c4\u5219&#xff09;<\/h3>\n<p>Windows&#xff1a;<\/p>\n<ul>\n<li>\u6253\u5f00\u201cWindows \u5b89\u5168\u4e2d\u5fc3\u201d \u2192 \u201c\u9632\u706b\u5899\u548c\u7f51\u7edc\u4fdd\u62a4\u201d \u2192 \u201c\u5141\u8bb8\u5e94\u7528\u901a\u8fc7\u9632\u706b\u5899\u201d<\/li>\n<li>\u627e\u5230\u4f60\u7684 Node.js \u6216\u5bf9\u5e94\u7a0b\u5e8f&#xff0c;\u52fe\u9009\u201c\u4e13\u7528\u201d\u548c\u201c\u516c\u7528\u201d<\/li>\n<li>\u6216\u8005\u4e34\u65f6\u5173\u95ed\u9632\u706b\u5899\u6d4b\u8bd5&#xff08;\u4e0d\u5efa\u8bae\u957f\u671f\u5173\u95ed&#xff09;<\/li>\n<\/ul>\n<p>macOS&#xff1a;<\/p>\n<ul>\n<li>\u7cfb\u7edf\u8bbe\u7f6e \u2192 \u7f51\u7edc \u2192 \u9632\u706b\u5899 \u2192 \u5141\u8bb8\u6307\u5b9a\u7a0b\u5e8f\u901a\u8fc7<\/li>\n<\/ul>\n<p>Linux (Ubuntu)&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">3000<\/span>  <span class=\"token comment\"># \u4ee5\u7aef\u53e33000\u4e3a\u4f8b<\/span><\/p>\n<hr \/>\n<h3>5. \u7528\u624b\u673a\u8bbf\u95ee<\/h3>\n<ul>\n<li>\u624b\u673a\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165&#xff1a;http:\/\/\u7535\u8111\u7684\u5c40\u57df\u7f51IP:\u7aef\u53e3\u53f7<\/li>\n<li>\u4f8b\u5982&#xff1a;http:\/\/192.168.1.100:3000<\/li>\n<\/ul>\n<p>\u5982\u679c\u80fd\u6b63\u5e38\u6253\u5f00&#xff0c;\u8bf4\u660e\u6210\u529f\u3002<\/p>\n<hr \/>\n<h3>\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u529e\u6cd5<\/h3>\n<h4>\u274c \u624b\u673a\u65e0\u6cd5\u8bbf\u95ee&#xff0c;\u8fde\u63a5\u8d85\u65f6<\/h4>\n<ul>\n<li>\u539f\u56e0 1&#xff1a;\u4e0d\u5728\u540c\u4e00\u5c40\u57df\u7f51\u3002\u68c0\u67e5\u624b\u673a Wi-Fi \u540d\u79f0\u662f\u5426\u548c\u7535\u8111\u4e00\u81f4&#xff08;\u7535\u8111\u5982\u679c\u7528\u7f51\u7ebf&#xff0c;\u786e\u4fdd\u548c\u624b\u673a Wi-Fi \u662f\u540c\u4e00\u4e2a\u8def\u7531\u5668\u4e0b\u7684\u7f51\u6bb5&#xff09;\u3002<\/li>\n<li>\u539f\u56e0 2&#xff1a;\u9632\u706b\u5899\u963b\u6b62\u3002\u4e34\u65f6\u5173\u95ed\u7535\u8111\u9632\u706b\u5899\u6d4b\u8bd5\u3002<\/li>\n<li>\u539f\u56e0 3&#xff1a;\u670d\u52a1\u5668\u6ca1\u6709\u76d1\u542c 0.0.0.0\u3002\u56de\u5230\u7b2c 3 \u6b65\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668\u3002<\/li>\n<li>\u539f\u56e0 4&#xff1a;\u7aef\u53e3\u88ab\u5360\u7528\u6216\u670d\u52a1\u5668\u5d29\u6e83\u3002\u786e\u4fdd\u7535\u8111\u4e0a localhost:\u7aef\u53e3 \u80fd\u6b63\u5e38\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<h4>\u274c \u624b\u673a\u8bbf\u95ee\u65f6\u63d0\u793a\u201c\u4e0d\u5b89\u5168\u201d\u6216\u65e0\u6cd5\u52a0\u8f7d\u8d44\u6e90&#xff08;HTTPS \u95ee\u9898&#xff09;<\/h4>\n<ul>\n<li>\u5982\u679c\u4f60\u7684\u7f51\u9875\u9700\u8981\u8c03\u7528\u6444\u50cf\u5934\u3001\u5730\u7406\u4f4d\u7f6e\u7b49 API&#xff0c;\u6d4f\u89c8\u5668\u53ef\u80fd\u5f3a\u5236\u8981\u6c42 HTTPS\u3002<\/li>\n<li>\u89e3\u51b3\u529e\u6cd5&#xff1a;\n<ul>\n<li>\u4f7f\u7528\u5185\u7f51\u7a7f\u900f\u5de5\u5177&#xff08;\u5982 ngrok&#xff09;\u63d0\u4f9b HTTPS \u5730\u5740\u3002<\/li>\n<li>\u6216\u8005\u5728\u624b\u673a\u4e0a\u4e34\u65f6\u8bbf\u95ee http:\/\/ \u7248\u672c&#xff08;\u90e8\u5206 iOS \u9ed8\u8ba4\u5141\u8bb8 http&#xff0c;\u4f46\u67d0\u4e9b\u529f\u80fd\u53d7\u9650&#xff09;\u3002<\/li>\n<li>iOS \u53ef\u5c1d\u8bd5\u5173\u95ed\u201c\u81ea\u52a8\u68c0\u6d4b\u7f51\u7ad9\u662f\u5426\u652f\u6301 HTTPS\u201d\u7b49\u5b9e\u9a8c\u6027\u9009\u9879\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u274c \u624b\u673a\u8bbf\u95ee\u6837\u5f0f\/\u8d44\u6e90\u52a0\u8f7d\u4e0d\u51fa\u6765<\/h4>\n<ul>\n<li>\u9875\u9762\u4e2d\u4f7f\u7528\u4e86 \/\/localhost:3000\/xxx.js \u8fd9\u6837\u7684\u7edd\u5bf9\u8def\u5f84&#xff0c;\u6216 http:\/\/127.0.0.1 \u7684\u786c\u7f16\u7801\u8d44\u6e90\u3002<\/li>\n<li>\u89e3\u51b3\u529e\u6cd5&#xff1a;\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u6216\u6839\u636e\u73af\u5883\u53d8\u91cf\u52a8\u6001\u8bbe\u7f6e\u8d44\u6e90 URL\u3002<\/li>\n<\/ul>\n<h4>\u274c \u5237\u65b0\u9875\u9762\u540e\u63a5\u53e3\u8bf7\u6c42\u5931\u8d25&#xff08;\u8de8\u57df\u6216\u540e\u7aef\u5730\u5740\u5199\u6b7b&#xff09;<\/h4>\n<ul>\n<li>\u524d\u7aef\u8bf7\u6c42\u540e\u7aef API \u65f6\u5982\u679c\u5199\u7684\u662f http:\/\/localhost:8080&#xff0c;\u624b\u673a\u65e0\u6cd5\u8bc6\u522b\u3002<\/li>\n<li>\u89e3\u51b3\u529e\u6cd5&#xff1a;\u5c06 API \u5730\u5740\u6539\u4e3a\u7535\u8111\u7684\u5c40\u57df\u7f51 IP&#xff0c;\u6216\u4f7f\u7528\u4ee3\u7406\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u5907\u9009\u65b9\u6848&#xff08;\u4e0d\u5728\u540c\u4e00\u5c40\u57df\u7f51\u65f6&#xff09;<\/h3>\n<p>\u5982\u679c\u4f60\u548c\u624b\u673a\u4e0d\u5728\u540c\u4e00\u4e2a\u7f51\u7edc&#xff08;\u6bd4\u5982\u7535\u8111\u5728\u516c\u53f8&#xff0c;\u624b\u673a\u7528\u6d41\u91cf&#xff09;&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u5185\u7f51\u7a7f\u900f\u5de5\u5177&#xff1a;<\/p>\n<ul>\n<li>ngrok&#xff1a;ngrok http 3000 \u2192 \u751f\u6210\u4e00\u4e2a\u516c\u7f51 https \u5730\u5740&#xff0c;\u624b\u673a\u76f4\u63a5\u8bbf\u95ee\u8be5\u5730\u5740\u3002<\/li>\n<li>localtunnel&#xff1a;lt &#8211;port 3000<\/li>\n<li>serveo&#xff1a;ssh -R 80:localhost:3000 serveo.net<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u5de5\u5177\u4f1a\u81ea\u52a8\u5904\u7406\u9632\u706b\u5899\u3001HTTPS \u7b49\u95ee\u9898&#xff0c;\u9002\u5408\u4e34\u65f6\u8fdc\u7a0b\u6f14\u793a\u3002<\/p>\n<hr \/>\n<h3>\u603b\u7ed3\u547d\u4ee4\u901f\u67e5<\/h3>\n<table>\n<tr>\u573a\u666f\u547d\u4ee4<\/tr>\n<tbody>\n<tr>\n<td>Vite \u5141\u8bb8\u5c40\u57df\u7f51<\/td>\n<td>npm run dev &#8212; &#8211;host<\/td>\n<\/tr>\n<tr>\n<td>Webpack Dev Server<\/td>\n<td>\u5728\u914d\u7f6e\u4e2d\u52a0 host: &#039;0.0.0.0&#039;<\/td>\n<\/tr>\n<tr>\n<td>\u83b7\u53d6\u7535\u8111 IP&#xff08;Win&#xff09;<\/td>\n<td>ipconfig<\/td>\n<\/tr>\n<tr>\n<td>\u83b7\u53d6\u7535\u8111 IP&#xff08;Mac\/Linux&#xff09;<\/td>\n<td>ifconfig \u6216 ip addr<\/td>\n<\/tr>\n<tr>\n<td>\u4e34\u65f6\u5173\u95ed Windows \u9632\u706b\u5899&#xff08;\u6d4b\u8bd5&#xff09;<\/td>\n<td>netsh advfirewall set allprofiles state off<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6309\u7167\u4ee5\u4e0a\u6b65\u9aa4\u64cd\u4f5c&#xff0c;\u7edd\u5927\u591a\u6570\u60c5\u51b5\u90fd\u80fd\u987a\u5229\u7528\u624b\u673a\u8bbf\u95ee\u7535\u8111\u4e0a\u7684\u524d\u7aef\u9875\u9762\u3002\u5982\u679c\u4ecd\u9047\u5230\u95ee\u9898&#xff0c;\u8bf7\u63d0\u4f9b\u4f60\u4f7f\u7528\u7684\u5177\u4f53\u5de5\u5177\u548c\u9519\u8bef\u73b0\u8c61&#xff0c;\u6211\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5e2e\u4f60\u5206\u6790\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u4e0a\u8fd0\u884c\u7684\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u6bd4\u5982 Vite\u3001Webpack Dev Server\u3001http-server \u7b49&#xff09;&#xff0c;\u6838\u5fc3\u539f\u7406\u662f\u8ba9\u624b\u673a\u548c\u7535\u8111\u5904\u4e8e\u540c\u4e00\u5c40\u57df\u7f51&#xff0c;\u5e76\u8ba9\u670d\u52a1\u5668\u76d1\u542c\u5c40\u57df\u7f51\u7684 IP \u5730\u5740\u3002\u4e0b\u9762\u662f\u5b8c\u6574\u6b65\u9aa4\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\u30021. \u57fa\u672c\u6761\u4ef6<br \/>\n\u624b\u673a\u548c\u7535\u8111\u8fde\u63a5\u540c\u4e00\u4e2a Wi-Fi&#xff08;\u6216\u8005\u7535\u8111\u7528\u7f51\u7ebf\u3001\u624b\u673a\u8fde\u540c\u4e00\u8def\u7531\u5668\u7684 Wi-Fi&#xff09;\u3002\u7535\u8111\u4e0a\u5df2\u7ecf\u542f\u52a8\u4e86\u4e00\u4e2a\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u4f8b\u5982 http<\/p>\n","protected":false},"author":2,"featured_media":84289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9435,594,87,43],"topic":[],"class_list":["post-84290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-9435","tag-web","tag-87","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/84290.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8981\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u4e0a\u8fd0\u884c\u7684\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u6bd4\u5982 Vite\u3001Webpack Dev Server\u3001http-server \u7b49&#xff09;&#xff0c;\u6838\u5fc3\u539f\u7406\u662f\u8ba9\u624b\u673a\u548c\u7535\u8111\u5904\u4e8e\u540c\u4e00\u5c40\u57df\u7f51&#xff0c;\u5e76\u8ba9\u670d\u52a1\u5668\u76d1\u542c\u5c40\u57df\u7f51\u7684 IP \u5730\u5740\u3002\u4e0b\u9762\u662f\u5b8c\u6574\u6b65\u9aa4\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\u30021. \u57fa\u672c\u6761\u4ef6 \u624b\u673a\u548c\u7535\u8111\u8fde\u63a5\u540c\u4e00\u4e2a Wi-Fi&#xff08;\u6216\u8005\u7535\u8111\u7528\u7f51\u7ebf\u3001\u624b\u673a\u8fde\u540c\u4e00\u8def\u7531\u5668\u7684 Wi-Fi&#xff09;\u3002\u7535\u8111\u4e0a\u5df2\u7ecf\u542f\u52a8\u4e86\u4e00\u4e2a\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u4f8b\u5982 http\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84290.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T02:41:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726024144-6a6573e826ae6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84290.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84290.html\",\"name\":\"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T02:41:45+00:00\",\"dateModified\":\"2026-07-26T02:41:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84290.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84290.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84290.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/84290.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8981\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u4e0a\u8fd0\u884c\u7684\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u6bd4\u5982 Vite\u3001Webpack Dev Server\u3001http-server \u7b49&#xff09;&#xff0c;\u6838\u5fc3\u539f\u7406\u662f\u8ba9\u624b\u673a\u548c\u7535\u8111\u5904\u4e8e\u540c\u4e00\u5c40\u57df\u7f51&#xff0c;\u5e76\u8ba9\u670d\u52a1\u5668\u76d1\u542c\u5c40\u57df\u7f51\u7684 IP \u5730\u5740\u3002\u4e0b\u9762\u662f\u5b8c\u6574\u6b65\u9aa4\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\u30021. \u57fa\u672c\u6761\u4ef6 \u624b\u673a\u548c\u7535\u8111\u8fde\u63a5\u540c\u4e00\u4e2a Wi-Fi&#xff08;\u6216\u8005\u7535\u8111\u7528\u7f51\u7ebf\u3001\u624b\u673a\u8fde\u540c\u4e00\u8def\u7531\u5668\u7684 Wi-Fi&#xff09;\u3002\u7535\u8111\u4e0a\u5df2\u7ecf\u542f\u52a8\u4e86\u4e00\u4e2a\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668&#xff08;\u4f8b\u5982 http","og_url":"https:\/\/www.wsisp.com\/helps\/84290.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T02:41:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726024144-6a6573e826ae6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84290.html","url":"https:\/\/www.wsisp.com\/helps\/84290.html","name":"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T02:41:45+00:00","dateModified":"2026-07-26T02:41:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84290.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84290.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84290.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u8ba9\u624b\u673a\u8bbf\u95ee\u7535\u8111\u672c\u5730\u7684\u524d\u7aef\u670d\u52a1\u5668\u7f51\u9875\uff08Vite\u7b49\u524d\u7aef\u9879\u76ee\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=84290"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84290\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/84289"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84290"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}