Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 5197  / 2 Years ago, sun, august 21, 2022, 9:18:13

I was trying to use Transmission's Web Interface, and it worked perfectly. I could access it via http://localhost:8080/transmission/web/, I could use my local IP, I could use 127.0.0.1, I could, after port-forwarding, even use my actual IP. A DNS connection even succeeded!



I was annoyed by the :8080 tacked onto the URL, and wanted to remove it, so, I went into Transmission's settings and changed it to port 80. All of a sudden, I couldn't connect via any method! They all failed. Even pressing the "Open web client" button in Transmission's settings didn't work. (just a generic "could not establish connection" message, incase you were curious.)

NOTE: I do not have Apache or any other server software installed.



I then, in a panic, switched back to port 8080, and everything was fine. Another try on 80, and failure. Restarting Transmission didn't fix anything, either. (On a hunch, I tried connecting to the :8080 url while I'd set it to port 80, just to see if it was still using the old port. It wasn't.)



Anyway, this isn't a critical issue, but I'd really like to be able to use port 80 for my web client! (well, I'd actually like to be able to use 443, but that's another question...)


More From » webserver

 Answers
1

The first 1024 ports are restricted; you need to be root or to have the appropriate CAP_NET_BIND_SERVICE capability.



If you really wanted to use port 80 you could give transmission that capability with the setcap command.



This is the correct command for Transmission:



sudo setcap cap_net_bind_service+ep /usr/bin/transmission-daemon

[#33841] Sunday, August 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hentor

Total Points: 482
Total Questions: 104
Total Answers: 111

Location: South Korea
Member since Sun, Dec 25, 2022
1 Year ago
;