Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Net TCP Port Sharing Service Failed to Start: Fixes

· 6 min read · Home Tech

In this article
  1. What Is the Net.Tcp Port Sharing Service?
  2. Why Does the Service Fail to Start?
  3. How to Fix It: Step-by-Step
  4. Common Error Codes and Their Meanings
  5. How to Verify the Service Is Working
  6. Alternatives to Port Sharing
  7. Frequently Asked Questions

The "Net.Tcp Port Sharing Service" (SMSvcHost.exe) fails to start most often because the service is disabled, the HTTP.sys kernel driver is blocked, or the required Windows Communication Foundation (WCF) non-HTTP activation components are missing. The fix usually involves enabling the service, setting it to Automatic, and installing the WCF HTTP Activation feature—then restarting the service from an elevated command prompt.

What Is the Net.Tcp Port Sharing Service?

This Windows service, also called NetTcpPortSharing, is part of the .NET Framework 3.0 and later. It allows multiple processes to listen on the same TCP port by using the HTTP.sys kernel driver as a multiplexer. Instead of each application binding directly to a port like 808, they all register with the port-sharing service, which forwards incoming traffic to the correct process based on the URL path.

It is used primarily by WCF services that use the net.tcp:// binding. For example, a single server can host several WCF services on port 808, each with a different URL, without port conflicts. The service runs as SMSvcHost.exe and is located in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SMSvcHost.exe on 64-bit systems.

Why Does the Service Fail to Start?

There are several common causes, and the error message alone rarely tells you which one applies. The most frequent are:

  • Startup type is Disabled or Manual – The service may be set to Disabled by default on some Windows Server editions, or a cleanup tool changed it.
  • Missing WCF HTTP Activation feature – Without this Windows feature, the service has no dependencies to start and may fail with error 1068 (dependency service does not exist).
  • HTTP.sys driver is blocked or disabled – The port sharing service depends on the HTTP service (HTTP.sys). If that kernel driver is disabled, the service cannot start.
  • Corrupted .NET Framework installation – If the .NET Framework 4.x files are damaged, SMSvcHost.exe may crash immediately.
  • Insufficient permissions – The service account may not have the right to start the service, or the service is not registered correctly in the registry.

How to Fix It: Step-by-Step

Start with the most common fix and work down. You will need an administrator account.

  1. Open Services – Press Win + R, type services.msc, and press Enter.
  2. Locate Net.Tcp Port Sharing Service – Scroll down to the entry named Net.Tcp Port Sharing. Double-click it.
  3. Set Startup type to Automatic – In the dropdown, choose Automatic. If it is already Automatic, skip this step.
  4. Start the service – Click the Start button. If it starts, you are done. If it fails, note the error code and continue.
  5. Install WCF HTTP Activation – Open Control Panel > Programs > Turn Windows features on or off. Expand .NET Framework 4.8 Advanced Services and check WCF Services > HTTP Activation. Click OK and restart if prompted.
  6. Enable HTTP.sys – Open an elevated Command Prompt (Run as administrator) and type: sc config HTTP start= demand. Then run net start HTTP.
  7. Repair the .NET Framework – Download the .NET Framework Repair Tool from Microsoft's official site and run it. This will fix corrupted files.
  8. Restart the service – After any of the above, go back to Services and try to start Net.Tcp Port Sharing again.

Common Error Codes and Their Meanings

When the service fails, Event Viewer (Windows Logs > System) will contain an error from the source Service Control Manager. The most common codes are:

  • Error 1068 – The dependency service or group failed to start. This usually means HTTP.sys is not running or the WCF feature is missing.
  • Error 1053 – The service did not respond in a timely fashion. Often caused by a corrupted .NET Framework or a hung SMSvcHost.exe process.
  • Error 1079 – The account specified for this service is different from the account specified for other services running in the same process. This can happen if the service is configured to run under a custom account.
  • Error 5 (Access Denied) – The service account lacks the right to start the service. Run services.msc as administrator and try again.

How to Verify the Service Is Working

Once the service starts, you can confirm it is listening by running the following in an elevated Command Prompt:

netstat -ano | findstr :808

If the port sharing service is active, you will see a line with 0.0.0.0:808 and the process ID of SMSvcHost.exe. You can find that process ID by running tasklist | findstr SMSvcHost.

Additionally, check that the service status is Running in Services. If it stops immediately after starting, look for a crash in Event Viewer under Windows Logs > Application with the source .NET Runtime or Application Error.

Alternatives to Port Sharing

If you cannot get the service to start, or you prefer not to use it, you have two main alternatives:

  • Use a different port for each service – Instead of sharing port 808, configure each WCF service to listen on a unique port, such as 8081, 8082, etc. This eliminates the need for port sharing entirely.
  • Use IIS hosting with net.tcp binding – IIS can host WCF services with net.tcp binding without the port sharing service, because IIS manages its own listener. However, this requires the WAS (Windows Process Activation Service) and the appropriate IIS features.

Both alternatives are stable and widely used, but they require configuration changes in your service endpoints.

Frequently Asked Questions

Why is Net.Tcp Port Sharing Service disabled by default?

On some Windows editions, particularly client versions like Windows 10/11, the service is set to Manual or Disabled because most applications do not need it. It is only required when a WCF service explicitly uses the net.tcp binding with port sharing enabled. Enabling it is harmless, but it does consume a small amount of memory.

Can I manually start the service without changing startup type?

Yes, you can start it manually from Services or with the command net start NetTcpPortSharing. However, it will not start automatically after a reboot unless you set the startup type to Automatic. If you use WCF services regularly, set it to Automatic to avoid issues after restarts.

What is SMSvcHost.exe and is it safe?

SMSvcHost.exe is the executable for the Net.Tcp Port Sharing Service. It is a legitimate Microsoft component located in the .NET Framework folder. If you see it running, it is safe. However, malware can disguise itself with the same name, so check the file path. If it is not in C:\Windows\Microsoft.NET\, run a virus scan.

Does the port sharing service work with .NET Core or .NET 5+?

No, the Net.Tcp Port Sharing Service is part of the .NET Framework and is not used by .NET Core or .NET 5+. Those frameworks have their own TCP listener management and do not rely on this service. The service is only relevant for applications built on the full .NET Framework (4.x and earlier).

I get error 1068 even after enabling HTTP.sys. What else can I try?

Error 1068 indicates a missing dependency. Besides HTTP.sys, the service also depends on the Remote Procedure Call (RPC) service. Ensure that RPC is running. Also, check if the WCF HTTP Activation feature is actually installed by running dism /online /get-features | findstr WCF in an elevated command prompt. If it is not listed, install it using dism /online /enable-feature /featurename:WCF-HTTP-Activation.