What does HRESULT 0xC03B0013 (HNS_PORT_ALREADY_EXISTS) mean?

 
Previous Next
HNS_POLICY_ALREADY_EXISTS HNS_ENDPOINT_ALREADY_ATTACHED

HNS_PORT_ALREADY_EXISTS

HNS_PORT_ALREADY_EXISTS is an HRESULT used by Windows Host Networking Service (HNS). It indicates that HNS attempted to create a port that is already associated with the target switch.

What to check for HNS_PORT_ALREADY_EXISTS

  • Verify whether the endpoint is already attached to the expected virtual switch.
  • Check for a previous incomplete create operation before creating another port.
  • Use the existing port only after confirming that it belongs to the intended endpoint.

Microsoft documentation on Windows container networking and HNS

Diagnostic discriminator: Inspect the ports already associated with the target virtual switch before creation. This result means the requested port identity is already present, not that the switch itself is missing.


Looking for a different code? Search another status or error code.