Skip to content

DevicePortalConnection fails when device is connected via USB, but has an active wifi connection. #209

@Holo-Krzysztof

Description

@Holo-Krzysztof

I've observed this behavior on HoloLens, so I don't know if this affects other devices as well, but if the HoloLens is connected to WLAN and via USB to a PC, attempting a connection via 127.0.0.1:10080 fails. The connection status says "connected", but after that I get a bunch of exceptions. I've printed out the status on the ConnectionChanged event, here's the output:

DeterminingConnectionRequirements Connecting Checking secure connection requirements
UpdatingDeviceAddress Connecting Updating device connection
Idle Connected Device connection established
Exception thrown: 'System.Security.Authentication.AuthenticationException' in System.dll
Exception thrown: 'System.Security.Authentication.AuthenticationException' in System.dll
Exception thrown: 'System.Security.Authentication.AuthenticationException' in System.dll
Exception thrown: 'System.Security.Authentication.AuthenticationException' in System.dll
Exception thrown: 'System.Security.Authentication.AuthenticationException' in System.dll
Exception thrown: 'System.ObjectDisposedException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.dll
An error occurred while sending the request.
Exception thrown: 'System.Net.Http.HttpRequestException' in WpfDevicePortal.exe

I've observed that somewhere in the connection process DevicePortal.Address (which is 127.0.0.1:10080 initially) is replaced with the address of the access point the HoloLens is connected to. Does anyone know why this is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions