If anyone else is still having this problem, I found this related issue on the IntelliJ board: https://youtrack.jetbrains.com/issue/IDEA-157303
It seems the problem is related to resolving hostnames. The recommended workaround is to include the following line in your /etc/hosts file:
127.0.0.1 localhost <your hostname goes here>.local
And for IPv6 resolving, the same:
::1 localhost <your hostname goes here>.local