I am seeing strange behavior when trying to connect to a TCP port running on the HoloLens. It seems to only accept incoming connections on certain ports.
I wrote a UWP application that does the following:
listener = new StreamSocketListener();
listener.ConnectionReceived += OnConnection;
await listener.BindServiceNameAsync(PortTextBox.Text);
(Where the PortTextBox is an input field on the GUI.)
I have the proper capabilities set: Internet (client & server), Internet (client), Private Networks (client & server)
When the HoloLens listens on TCP port 9005, my laptop can successfully connect via Wifi.
However, if I try another port the HoloLens does not respond. (I've tried 4444, 9000, 9004.)
I ran Wireshark, and see the TCP SYN sent from my laptop, but no response from the HoloLens.
It seems like there is a Firewall running on the HoloLens that does a "drop" rather than a "reject" for unallowed ports.
Has anyone else experienced this issue?