How can I delete the service WCF from my port 8000?

Alejandro Javier 1 Reputation point
2021-11-11T16:37:38.69+00:00

I have windows 10 pro and for my work I need to have my localhost:8000 emptly. The problem is, that in this port I already have a process from the system runing into it. It's a service for windows system communication for WCF. I need to delete it or just move to another port.

Please help me to kill this system process.

Thnks

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
260 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 38,026 Reputation points
    2021-11-11T17:29:52.413+00:00

    If you are running a WCF component as a service then hopefully the developer of that service made the port information configurable. Take a look at the service's configuration file. If they didn't then you aren't going to be able to change it. Note that normally this is in the system.serviceModel bindings section.

    If you don't actually need the service to run then use either the services app to select the service and stop it or use powershell's stop-service command to stop the service. Both require that you have admin rights.

    stop-service nameofmyservice
    

    If you aren't sure of the service name then use get-service to dump all the services and find the name of the service (it is the service name, not the display name).

    No comments

  2. Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
    2021-11-12T10:01:21.463+00:00

    Hi @Alejandro Javier ,
    To stop the service, right-click the service in the Service Control Manager and select "Stop", or type net stop WCFWindowsServiceSample at the command prompt.
    To uninstall the Windows service type installutil /u bin\service.exe at the command prompt.
    https://learn.microsoft.com/en-us/dotnet/framework/windows-services/how-to-install-and-uninstall-services
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments