How can I get Jenkins to stop listening for remote connections?
Debian
If you installed Jenkins from the Debian package, you can modify /etc/default/jenkins
and add the following line somewhere:
HTTP_HOST=127.0.0.1
and then add --httpListenAddress=$HTTP_HOST
to the JENKINS_ARGS so that it reads something like:
JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=$HTTP_HOST"
Ubuntu
If you installed Jenkins from the Ubuntu Oneiric (11.10) package, edit /etc/init/jenkins.conf
and add --httpListenAddress=127.0.0.1
to the JENKINS_ARGS
line, so that it reads like:
JENKINS_ARGS="--webroot=$JENKINS_RUN/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT --httpListenAddress=127.0.0.1"
RedHat/CentOS/Amazon Linux
If you installed Jenkins using YUM repository, modify /etc/sysconfig/jenkins
and edit JENKINS_LISTEN_ADDRESS
to JENKINS_LISTEN_ADDRESS=127.0.0.1