问题描述
我有一个运行在通过交换机连接到PC的PC上的Websocket服务器.当我使用服务器的IP在HoloLens中创建一个websocket客户端时,它不会连接.怎么会?我无法从服务器上的PC ping HoloLens仿真器,但可以ping运行仿真器的PC.
I have a websocket server running on a pc connected to the pc through a switch.When I make a websocket client in the HoloLens with the IP of the server it doesn't connect. How come? I cannot ping the HoloLens emulator from the pc with the server but I can ping the pc running the emulator.
推荐答案
默认情况下,与仿真器的所有交互都是通过169.254.xxx.xxx地址完成的.该地址不可在外部路由.如果转到仿真器的Web门户中的网络菜单选项,则应该看到两个网络适配器,一个是169.254.xxx.xxx地址,另一个是通过dhcp分配的地址.我的猜测是您没有第二个适配器,需要在您的Hyper V配置中为模拟器修复它.如果确实有第二个适配器,则无法对该地址执行ping操作,因为HoloLens无法运行且ICMP服务器无法响应ping.更好的测试是在模拟器中打开Internet Explorer,然后尝试转到网络上的有效Web服务器地址.这是我的设置示例:
By default all interactions with the emulator are done through a 169.254.xxx.xxx address. This address is not externally routable. If you go to the networking menu option in the web portal for the emulator you should see two network adapters, one is the 169.254.xxx.xxx address and another is an address assigned via dhcp. My guess is that you don't have a second adapter and need to fix that in your Hyper V configuration for the emulator. If you do have that second adapter pinging that address will not work, because HoloLens does not run and ICMP server to respond to pings. A better test is to open Internet Explorer in the emulator and attempt to go to a valid web server address on your network. Here is what my settings look like as an example:
这篇关于HoloLens仿真器连接到LAN上的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!