Category >
OTHERS
|| Published on :
Wednesday, March 25, 2026 || Views:
9
||
vps port not accessible open port windows vps port 5015 not working vps localhost issue 127.0.0.1 vs 0.0.0.0 windows firewall open port powershell vps app not accessible externally how to expose port on vps netstat port listening but not accessible fix vps port issue
Fixing VPS Port Access Issue: Making Your Application Accessible Externally (Port 5015)
Fix VPS Port Access Issue
VPS Port Access Issue (Port 5015)
?? Root Problem
Your application is running on:
127.0.0.1:5015
This means:
- ? Accessible inside VPS
- ? NOT accessible from outside
? Solution: Bind to 0.0.0.0
Update your application to listen on all network interfaces.
?? Flask (Python)
Change this:
app.run(host="127.0.0.1", port=5015)
To this:
app.run(host="0.0.0.0", port=5015)
?? ASP.NET
In launchSettings.json:
"applicationUrl": "http://0.0.0.0:5015"
Or in code:
app.Run("http://0.0.0.0:5015");
?? Node.js
app.listen(5015, "0.0.0.0");
?? Restart Application
After changes, restart your app and verify:
netstat -ano | findstr :5015
Expected Output:
TCP 0.0.0.0:5015 LISTENING
?? Additional Checks
1. Firewall Rule
Get-NetFirewallRule | findstr 5015
2. VPS Provider Security
- AWS → Security Group
- Azure → Network Security Group (NSG)
- DigitalOcean → Firewall
Ensure port 5015 is allowed inbound.
3. Test URL
http://YOUR-VPS-IP:5015
?? Summary
- Port is open ?
- App is running ?
- Bound to localhost ?
Fix binding → Issue resolved