Django 5.2 - If you try running your app on the test server and get a response saying Error: You don’t have permission to access that port.
It is because that port is in use by another app.
If this seems confusing it should be, but I solved the problem along with other problems on my system by doing a little investigation.
The evaluation server is trying to use the following address:
http://127.0.0.1:8000
So I used PowerShell to investigate the problem resulting in the following command and response:
PS C:\Users\Kent> Get-Process -Id (Get-NetTCPConnection -LocalPort 8000).OwningProcess
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
169 17 4324 13232 8520 0 httpd
As well as the following command:
PS C:\Users\Kent> netstat -ano | findstr :8000
TCP 0.0.0.0:8000 0.0.0.0:0 LISTENING 8520
TCP [::]:8000 [::]:0 LISTENING 8520
From this, it was clear that an httpd server is running on my computer at port 8000.
Using Task Manager > Details I discovered that an application called IBXDashboard was running httpd.exe on port 8000.
So I visited the URL on my system, and and got a warning from Firefox that an untrusted service was at the destination.
The service was untrusted because it was using a self-signed certificate for HTTPS, but the certificate showed the following:
Country: IL (Israel)
State/Province: N/A
Organization: Incredibuild
Common Name: TEMP INCREDIBUILD - REPLACE
Continuing on to investigate the page I found a full-screen login page for INCREDIBUILD.
This is a software used to share computing power among computers. A little more investigation revealed that it was installed by Visual Studio.
This application was allowing other people to log into my system and share my computing power, on my LAN, in the Cloud, and beyond.
Note: For some time I was experiencing a problem that when I put my computer to sleep, almost immediately it would wake back up and in order to close it down I had to turn it off. This was almost certainly because other people were using my computer when I tried puting it to sleep.
Very Freaky.
I tried uninstalling it using Revo Uninstaller and when Revo tried to use the app’s own uninstall app, It refused saying “Please uninstall this App using Microsoft Visual Studio”.
But even after refusal, Revo was able to uninstall it.
Result
Django’s evaluation server runs fine.
I can put my computer to sleep.
At the time I was trying to search the web for information on refusal to sleep, I saw that it was happening to many, so I posted it here to save others from the agrivation.
-Kent