1

I just got myself a Windows 2019 server VPS. It's unmanaged.

I'm trying to open port 3307. I added the port to the firewall under ingoing tcp/udp and outgoing tcp/udp (see screenshots below). I'm running a Django REST server on port 3307 (it's running at this time). After doing that the port still seems to be closed, a port checker also says it's closed.

As far as I know this is all I need to do to open a port in a Windows server, is there anything I'm missing? I also contacted the host and they confirmed that the port is not closed on their side.

Screenshots:

ingoing tcp

ingoing udp

outgoing tcp

outgoing udp

Port checker

App running on port 3307

App running on port 3307

2
  • closed usually indicates that nothing is listening on that port, not a firewall problem. Check if your service is actually running and configured to the port/interface you are checking. – Gerald Schneider Aug 18 '20 at 13:45
  • @GeraldSchneider Thanks but I'm hosting a Django server on port 3307, check the last screenshot (which I just added). – SJ19 Aug 18 '20 at 13:50
2

Your screenshot shows that your server only listens on the Loopback interface 127.0.0.1.

You are trying to access it with a different interface. Configure your server to listen on all interfaces (usually 0.0.0.0).

One way to do this is shown here:

python manage.py runserver 0.0.0.0:3307
1
  • Yes now it works, thank you so much! Never knew about the difference between 127.0.0.1 and 0.0.0.0. Localhost is the same as 127.0.0.1 right? – SJ19 Aug 18 '20 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.