I’m getting this error when I try to start PhotoStructure on my Windows desktop PC. I tried manually allowlisting PhotoStructure in the firewall as per the documentation, but the error continues to appear:
I have a bunch of network adapters from various things (VMWare, Hyper-V, Docker, WireGuard) and the network adapter is bridged to a Hyper-V virtual switch. Perhaps one of these is conflicting with it? I’m not entirely sure and it seems weird that that’d cause issues listening on a particular port.
Is there a way to get verbose logs out of PhotoStructure for this error message?
I don’t see any other apps listening on port 1807:
PS C:\Users\Daniel> Get-NetTCPConnection -LocalPort 1807
Get-NetTCPConnection : No MSFT_NetTCPConnection objects found with property 'LocalPort' equal to '1807'. Verify the
value of the property and retry.
At line:1 char:1
+ Get-NetTCPConnection -LocalPort 1807
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (1807:UInt16) [Get-NetTCPConnection], CimJobException
+ FullyQualifiedErrorId : CmdletizationQuery_NotFound_LocalPort,Get-NetTCPConnection
It took a bit of digging but I found this post on SuperUser:
where the commenter said:
In my case the error appears because the port used belong to reserved ports for Hyper-V.
This port range changes when I restart my computer, so sometimes I get the error sometimes no.
To check reserved ports by windows you can use(cmd/powershell):
netsh interface ipv4 show excludedportrange protocol=tcp
As far as I can tell, Hyper-V seems to pick random port ranges, so changing the port might not help. Might be a good idea to add something to the documentation about it, though?