# Failure to test Jenkins installation port

**URL:** <https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821>\
**Category:** Using Jenkins\
**Tags:** windows\
**Created:** [April 18, 2026, 7:51pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821 "2026-04-18T19:51:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonnagle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/gonnagle/32/83_2.png) [@Gonnagle](https://community.jenkins.io/u/Gonnagle)\
**Post date:** [April 18, 2026, 7:51pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/1 "2026-04-18T19:51:23Z")

</div>

Hi,

when running the Jenkins installer, there is a point, when the installer asks for an installation port. Makes sense, to mee. In addition, the installer provides the opportunity to test the availability of the requested port. Now, on my system, that test fails with the message below. Now, that failure is not my problem, but the following is:

The installer insists on a successful test. The “Next” button stays greyed out, and there is no possibility to go on. As a consequence, I cannot install Jenkins.

Any ideas for a workaround, or something like that?

Thanks,

Jochen

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/3X/f/5/f5bcf985e4478b9f3ef23d6fa500bc051f438072.png)

---

<div class="post-metadata">

**Author:** ![Gonnagle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/gonnagle/32/83_2.png) [@Gonnagle](https://community.jenkins.io/u/Gonnagle)\
**Post date:** [April 18, 2026, 7:53pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/2 "2026-04-18T19:53:05Z")

</div>

P.S: Before someone asks, the problem is not with permissions. Indeed, I launched the installer from a cmd prompt with administrator privileges. Same result.

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [April 18, 2026, 9:37pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/3 "2026-04-18T21:37:12Z")

</div>

That’s a very interesting error that I have never seen. What version of Windows are you trying to install on? Is this a machine that is on a domain? Can you give some more details on your environment? You are correct that the installer requires a successful bind to that port. The test is pretty simple, it just calls bind with “127.0.0.1” on that port and throws an error if that fails, so I am not sure where the error comes from specifically.

---

<div class="post-metadata">

**Author:** ![Gonnagle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/gonnagle/32/83_2.png) [@Gonnagle](https://community.jenkins.io/u/Gonnagle)\
**Post date:** [April 22, 2026, 7:15pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/4 "2026-04-22T19:15:54Z")

</div>

“Very interesting error” doesn’t sound good. My machine is a Windows 11 Laptop, running in my home network, so no domain, or anything like that. I can supply more information, if you have more specific requests.

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [April 22, 2026, 7:28pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/5 "2026-04-22T19:28:21Z")

</div>

Do you happen to have any firewall rules that match up with the port you are trying to use?

---

<div class="post-metadata">

**Author:** ![Gonnagle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/gonnagle/32/83_2.png) [@Gonnagle](https://community.jenkins.io/u/Gonnagle)\
**Post date:** [April 22, 2026, 7:57pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/6 "2026-04-22T19:57:18Z")

</div>

Turned out, that I had an old Jenkins installation running. After deinstalling that, everything worked fine.

Sorry,

Jochen

---

<div class="post-metadata">

**Author:** ![hellencharlezz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/hellencharlezz/32/21064_2.png) [@hellencharlezz](https://community.jenkins.io/u/hellencharlezz)\
**Post date:** [May 8, 2026, 9:55pm UTC](https://community.jenkins.io/t/failure-to-test-jenkins-installation-port/36821/7 "2026-05-08T21:55:22Z")

</div>

Hi,

This is a fairly common issue with the Jenkins Windows installer and it is usually caused by the port check being too strict rather than the port actually being unusable.

### Why this happens

The installer’s “Test Port” step does a basic bind check but it will fail if:

- Another process briefly holds the port (even system services or antivirus scans)

- Windows firewall or security software blocks the bind test

- The port is technically free but not immediately available for the installer’s check method

- A previous Jenkins/service instance did not fully release the port

### Workarounds you can try

**1. Choose a different port (quickest fix)**  
Try something like:

- 8081

- 9090

- 50000+ range ports

Even if 8080 is “free,” switching often bypasses the issue immediately.

— **2. Run installer as Administrator**  
Right-click → _Run as Administrator_  
This fixes a lot of false port-test failures.

**3. Temporarily disable firewall / antivirus (test only)**  
Some security tools block port binding checks even when the port is free.

1. Check if something is already using the port\*\*  
Run in CMD:

```auto
netstat -ano | findstr :8080

```

If something shows up, note the PID and stop it via Task Manager.

* * *

**5. Use “custom installation path + service install later” approach**  
If the installer keeps blocking you:

- Install Jenkins without service binding first (if option available)

- Then configure port manually in `jenkins.xml` or `jenkins.war` run options

Key point

This is usually not a real port conflict it is the installer’s validation logic being overly strict.

If you want, tell me:

- Which port you selected

- Windows version

- Whether antivirus/security tools are active

and I can help pinpoint the exact cause quickly.
