Problem binding to port 80: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

I am using Certbot and I used this command while my TMS XData server is down

certbot certonly --standalone

using command prompt as admin but I get this error (Windows server 2019)

Problem binding to port 80: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Please advice

Hi @Marcna1 and welcome to the LE community forum :slight_smile:

That means there is already something using port 80.
Please show:
sudo netstat -pant | grep -i listen | grep 80

3 Likes

sorry forgot to say it is windows server 2019

Try:
netstat -pant TCP
Then just show the lines with "LISTENING"

2 Likes
 Proto  Local Address          Foreign Address        State           Offload State

  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:5985           0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:7070           0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:47001          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49664          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49665          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49666          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49667          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49668          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49669          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49671          0.0.0.0:0              LISTENING       InHost
  TCP    0.0.0.0:49672          0.0.0.0:0              LISTENING       InHost
  TCP    245.125.45.78:50007          0.0.0.0:0              LISTENING       InHost

Something is using it.

3 Likes

how I know to stop it ?

netstat -ano

I found it is the system process !! I can not stop this . Is there another solution to generate the certificate ?

Check IIS

3 Likes

solved many thanks

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.