Everytimes I open my pc and try
$ lsof -i :80
I get
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME firefox
3082 totoXXX 41u IPv4 100396 0t0 TCP
totoXXX-PC-E15-Gen-2:39000->yyz12s07-in-f3.1e100.net:http
(ESTABLISHED) firefox 3082 totoXXX 93u IPv4 45722 0t0 TCP
totoXXX-PC-E15-Gen-2:49470->82.221.107.34.bc.googleusercontent.com:http
(ESTABLISHED) firefox 3082 totoXXX 113u IPv4 53661 0t0 TCP
totoXXX-PC-E15-Gen-2:49478->82.221.107.34.bc.googleusercontent.com:http
(ESTABLISHED) firefox 3082 totoXXX 125u IPv4 58753 0t0 TCP
totoXXX-PC-E15-Gen-2:47658->server-3-161-216-55.yul62.r.cloudfront.net:http
(ESTABLISHED) firefox 3082 totoXXX 129u IPv4 58755 0t0 TCP
totoXXX-PC-E15-Gen-2:43216->yyz12s07-in-f3.1e100.net:http
(ESTABLISHED) firefox 3082 totoXXX 187u IPv4 57077 0t0 TCP
totoXXX-PC-E15-Gen-2:37900->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 188u IPv4 57076 0t0 TCP
totoXXX-PC-E15-Gen-2:37892->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 190u IPv4 57079 0t0 TCP
totoXXX-PC-E15-Gen-2:37926->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 192u IPv4 57078 0t0 TCP
totoXXX-PC-E15-Gen-2:37910->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 194u IPv4 57080 0t0 TCP
totoXXX-PC-E15-Gen-2:37938->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 202u IPv4 66105 0t0 TCP
totoXXX-PC-E15-Gen-2:33126->a23-33-46-35.deploy.static.akamaitechnologies.com:http
(ESTABLISHED) firefox 3082 totoXXX 203u IPv4 66106 0t0 TCP
totoXXX-PC-E15-Gen-2:33134->a23-33-46-35.deploy.static.akamaitechnologies.com:http
(ESTABLISHED) firefox 3082 totoXXX 204u IPv4 66107 0t0 TCP
totoXXX-PC-E15-Gen-2:33146->a23-33-46-35.deploy.static.akamaitechnologies.com:http
(ESTABLISHED) firefox 3082 totoXXX 205u IPv4 66108 0t0 TCP
totoXXX-PC-E15-Gen-2:33156->a23-33-46-35.deploy.static.akamaitechnologies.com:http
(ESTABLISHED) firefox 3082 totoXXX 206u IPv4 66109 0t0 TCP
totoXXX-PC-E15-Gen-2:33170->a23-33-46-35.deploy.static.akamaitechnologies.com:http
(ESTABLISHED) firefox 3082 totoXXX 216u IPv4 80777 0t0 TCP
totoXXX-PC-E15-Gen-2:57830->a-0003.a-msedge.net:http (ESTABLISHED)
firefox 3082 totoXXX 217u IPv4 80778 0t0 TCP
totoXXX-PC-E15-Gen-2:57836->a-0003.a-msedge.net:http (ESTABLISHED)
firefox 3082 totoXXX 219u IPv4 57119 0t0 TCP
totoXXX-PC-E15-Gen-2:37952->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 253u IPv4 76362 0t0 TCP
totoXXX-PC-E15-Gen-2:43230->yyz12s07-in-f3.1e100.net:http
(ESTABLISHED) firefox 3082 totoXXX 288u IPv4 76361 0t0 TCP
totoXXX-PC-E15-Gen-2:43222->yyz12s07-in-f3.1e100.net:http
(ESTABLISHED) firefox 3082 totoXXX 294u IPv4 87975 0t0 TCP
totoXXX-PC-E15-Gen-2:38980->yyz12s07-in-f3.1e100.net:http
(ESTABLISHED) firefox 3082 totoXXX 315u IPv4 96441 0t0 TCP
totoXXX-PC-E15-Gen-2:43212->server-3-161-216-55.yul62.r.cloudfront.net:http
(ESTABLISHED) firefox 3082 totoXXX 319u IPv4 96442 0t0 TCP
totoXXX-PC-E15-Gen-2:43218->server-3-161-216-55.yul62.r.cloudfront.net:http
(ESTABLISHED) firefox 3082 totoXXX 364u IPv4 100389 0t0 TCP
totoXXX-PC-E15-Gen-2:43228->server-3-161-216-55.yul62.r.cloudfront.net:http
(ESTABLISHED) firefox 3082 totoXXX 365u IPv4 100390 0t0 TCP
totoXXX-PC-E15-Gen-2:43232->server-3-161-216-55.yul62.r.cloudfront.net:http
(ESTABLISHED) firefox 3082 totoXXX 374u IPv4 109303 0t0 TCP
totoXXX-PC-E15-Gen-2:46512->cloudproxy10022.sucuri.net:http
(ESTABLISHED) firefox 3082 totoXXX 386u IPv4 92828 0t0 TCP
totoXXX-PC-E15-Gen-2:44422->104.18.21.226:http (ESTABLISHED) firefox
3082 totoXXX 405u IPv4 111699 0t0 TCP
totoXXX-PC-E15-Gen-2:54728->192.229.211.108:http (ESTABLISHED) firefox
3082 totoXXX 406u IPv4 109305 0t0 TCP
totoXXX-PC-E15-Gen-2:53184->104.18.15.101:http (ESTABLISHED)
I am not a linux guru. I always do
sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill
to stop it before my local app stack nginx can run.
But why I am getting this? And how to stop getting this on all my linux starting?
firefox
is doing exactly what you've asked it to do, fetch and display some site over unencrypted HTTP. But it's not using port 80 on your machine, but the machine(s) in the other end of the connectionsfirefox
makes does listen on port 80, but that's a (conscious) choice by the administrator of those (as usage of SRV records - the only technology I remember having heard of that could change that - is far from widespread, the choice is basically between having their site online without SSL or not), and not your problem.