简体   繁体   English

如何在 chrome dev 远程设备上运行 React.js localhost 应用程序?

[英]How to run React.js localhost application on chrome dev remote devices?

I'm creating React.js application and running it on localhost port 5443 .我正在创建React.js应用程序并在localhost端口5443上运行它。 I want to see my React.js app in mobile view.我想在移动视图中查看我的 React.js 应用程序。 How can i run localhost in chrome remote devices.I'm able to connect remote devices on the chrome dev-tool but my localhost not running in remote device, throw error refused connection.我如何在 chrome 远程设备中运行 localhost。我能够在 chrome dev-tool 上连接远程设备,但我的localhost没有在远程设备中运行,抛出错误拒绝连接。

this could be achieved with any browser if you follow the steps in this question.如果您按照问题中的步骤操作,则可以使用任何浏览器来实现。 The easiest way to achieve is to have both your PC and your mobile device connected to the same network then using the IP address that your router assigned to the PC copy that direction and use it on your mobile Browser.实现的最简单方法是将您的 PC 和移动设备连接到同一网络,然后使用路由器分配给 PC 的 IP 地址复制该方向并在您的移动浏览器上使用它。 Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM