IntelliJ listens on tcp and udp ports on address 0.0.0.0 - Why? Is it unsecure?

Answered

netstat tells me that the java process IntelliJ runs with opens four ports (1 x tcp, 1 x tcp6, 2 udp) and listens on them on address 0.0.0.0...

Is this normal? I mean 0.0.0.0 opens them up for the whole world...

What are all of these 4 ports used for? Is it possible to bind them to 127.0.0.1 only?

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:38735 0.0.0.0:* LISTEN 22246/java
tcp6 0 0 :::41591 :::* LISTEN 22832/java
udp 0 0 0.0.0.0:8976 0.0.0.0:* 22246/java
udp 0 0 0.0.0.0:47619 0.0.0.0:* 22246/java

 

1
4 comments

UDP port is used for the licensing check and is by design.

TCP port on 0.0.0.0 should not be open out of the box, what plug-ins do you have installed?

There is a known issue related to Scala plug-in:

https://youtrack.jetbrains.com/issue/IDEA-175889
https://stackoverflow.com/a/43368412/104891

Built-in web server set to accept external connection is another possible case: https://stackoverflow.com/a/45970512/104891.

0

> UDP port is used for the licensing check and is by design.

Both UDP ports?

 

Yes, I do have the Scala Plugin installed...

 

And your link to IDEA-209726 is wrong I think (it's about keyboard shortcut problem).
I guess you mean IDEA-175889.

0

I found out more: One of the two open TCP ports is the remote maven server... The other one I still don't know...

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:46373 0.0.0.0:* LISTEN 27912/java
tcp6 0 0 :::37283 :::* LISTEN 28193/java
udp 0 0 0.0.0.0:8976 0.0.0.0:* 27912/java
udp 0 0 0.0.0.0:34305 0.0.0.0:* 27912/java

$ jps -l
28193 org.jetbrains.idea.maven.server.RemoteMavenServer
27912 com.intellij.idea.Main
0

Sorry, clipboard glitch, fixed the comment. Might be also JDK specific issue, our developers are looking into it.

0

Please sign in to leave a comment.