I use Centos 6.5
and Jenkins 1.547
. I installed Jenkins as outlined in Jenkins's wiki.
I configured Jenkins to listen on local port 8081
.
netstat -tulpn
reveals that Jenkins additionally listens on more ports (PID 981 being the running Jenkins process):
$ netstat -tulpn | grep 981
tcp 0 0 :::41613 :::* LISTEN 981/java
tcp 0 0 ::ffff:127.0.0.1:8081 :::* LISTEN 981/java
tcp 0 0 :::43586 :::* LISTEN 981/java
udp 0 0 :::33848 :::* 981/java
udp 0 0 :::5353 :::* 981/java
I am wondering about the purpose of those additional ports. Also, these ports are reachable from the outside, i.e. an outside nmap
scan shows these ports being open.
How can I configure Jenkins to only listen on local port 8081?