0

By running a simple port scan, I have noticed that pycharm is opening three ports on the machines it is installed on.

Pycharm is a great tool for developer, but it seems fairly awful to me on the security side. Opening ports is a known security hole, and they do not advertise loudly they are doing so.

How can I prevent pycharm from opening ports?

2
  • 1
    There may be settings within PyCharm to disable whatever services are listening on ports. It would be a good idea to check the documentation/support site for this. Commented Feb 9, 2020 at 20:27
  • 2
    I'm voting to close this question as off-topic because clearly the author does not know how an application needs to use ports.
    – Overmind
    Commented Feb 10, 2020 at 8:06

1 Answer 1

2

All programs can open ports. Running a firewall would prevent inbound traffic.

Running netstat -rn on Linux or OS X will show you all open ports. The ones listening on 127.0.0.1 are not open except to other local programs.

2
  • Thanks for that. Why does running a local scan on 127.0.0.1 show a different result than using the proper IP? The loopback does not send packets to the NIC?
    – DevShark
    Commented Feb 9, 2020 at 8:26
  • Loop back “listens” to local traffic. 0.0.0.0 and 10.x.x.x, or whatever your ip is, listens to requests from the local system and from outside.
    – Jonathan
    Commented Feb 9, 2020 at 21:30

Not the answer you're looking for? Browse other questions tagged .