microsoft / HoloLensForCV

Sample code and documentation for using the Microsoft HoloLens for Computer Vision research
MIT License
475 stars 154 forks source link

Failed to connect to IP ComputeOnDesktop #46

Open leoyala opened 6 years ago

leoyala commented 6 years ago

Build of computeOnDesktop is done properly and in the HoloLens I see a window where I have to enter an IP adress. I thought it might be an IP to target a running app on the HoloLens but I don't know how to map the adress of singular apps on the HoloLens. Or is the IP that I have to enter something completely different?

polszta commented 6 years ago

This would be the IP address of your HoloLens, you should be able to find it in Settings -> Network&Internet -> [your wifi] -> Advanced Options -> IPv4 address.

Note that I have just forked the Streamer tool into two more specialized tools. ComputeOnDesktop should work with the StreamerPV tool.

leoyala commented 6 years ago

Hello @polszta I pulled the changes and tried the ComputeOnDesktop again, but it fails when connecting. It says that the connection could not be stablished because the remote machine constantly refused it. Do I need to mke any specific changes on ComputeOnDesktop in order to use the PV and VLC tools, or are those changes already implemented?

ryohachiuma commented 5 years ago

When I enter the IP address of HL, I got the error

 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I resolved the problem by checking "Private Networks" tab in Package.appxmanifest. (ref: http://embedded101.com/Blogs/David-Jones/entryid/728/GEMS-Kept-getting-Network-Access-Required-in-a-Universal-App-An-hr-or-2-later)

I hope it will help!

leoyala commented 5 years ago

Hello @kemangjaka thank you for the information. I tried that and build it again but still the same error.

ryohachiuma commented 5 years ago

Just for a confirmation, you said,

Build of computeOnDesktop is done properly and in the HoloLens I see a window where I have to enter an IP adress.

that means, you run computeOnDesktop App at Hololens?

You should build and run the App on your desktop PC.

I think you have to do the following.

  1. Run StreamerPV App on Hololens. (you would see RGB image at Hololens)
  2. Run computeOnDesktop App on your desktop PC. (App window would rise on your desktop)
  3. Enter the ip address of Hololens at your desktop PC.
  4. you will see filtered PV image at your Hololens.
cgsaxner commented 5 years ago

Hi, i also have issues trying to run compute on desktop. I basically follow this:

I think you have to do the following.

  1. Run StreamerPV App on Hololens. (you would see RGB image at Hololens)
  2. Run computeOnDesktop App on your desktop PC. (App window would rise on your desktop)
  3. Enter the ip address of Hololens at your desktop PC.

I have the HoloLens connected via USB. However, i always get the error: "No connection could be made because the target machine actively refused it. WinRT information: No connection could be made because the target machine actively refused it."

Can anyone help?

ryohachiuma commented 5 years ago

Hi, you already tried SSL configuration issue and "Private Network " issue, right?

cgsaxner commented 5 years ago

I think so:

still get the same error, unfortunately...

ryohachiuma commented 5 years ago

You use Visual Studio 2017 and Windows 10, right?

The only difference of your environment and mine I know is connecting by USB or not...

cgsaxner commented 5 years ago

Yes, I'm on Windows 10 64 bit System, using Visual Studio 2017. Maybe the problem really is the USB connection. I'm working on a desktop PC, so I'll have to find a Wifi adapter somewhere to check if it will work over Wifi. Thanks for pointing that out!

jtrinidad6 commented 4 years ago

Hello, I am currently having this issue as well. any updates if something works for you?

leoyala commented 4 years ago

Hi @jtrinidad6, I ran into so many problems with the Holo Lens that I stopped working with them.

cgsaxner commented 4 years ago

Hello, I am currently having this issue as well. any updates if something works for you?

Hi, for me, using a Wifi connection instead of USB actually did the trick. However, I also ran into a lot of problems with HoloLensForCV and ended up writing my own application using this repo as a reference.