0

I am working in Intellij Idea and I have issues working with Testcontainers. It heavily depends on Docker containers. To run them I use Colima. It's set up with a network address.

# Results from `colima status`
INFO[0000] colima is running using macOS Virtualization.Framework 
INFO[0000] arch: aarch64                                
INFO[0000] runtime: docker                              
INFO[0000] mountType: virtiofs                          
INFO[0000] address: 192.168.200.5                       
INFO[0000] socket: unix://$HOME/.colima/default/docker.sock

When I run ping 192.168.200.5 in iTerm, then it works. When I ping from the Terminal in IntelliJ, then I get No route to host.

PING 192.168.200.5 (192.168.200.5): 56 data bytes
ping: sendto: No route to host
Request timeout for icmp_seq 0
ping: sendto: No route to host
Request timeout for icmp_seq 1
ping: sendto: No route to host
Request timeout for icmp_seq 2
^C
--- 192.168.200.5 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss

1 Answer 1

0

I figured it out. MacOS prevented IntelliJ to access the local network.

Solution 1 in the support article below helped me.

  • Navigate to macOS System Settings | Privacy & Security | Local Network
  • Allow IntelliJ IDEA access to your local network

https://youtrack.jetbrains.com/articles/SUPPORT-A-564/Cannot-connect-to-remote-host-No-route-to-host-macOS-15-Sequoia

Sign up to request clarification or add additional context in comments.

2 Comments

Can you edit this answer to describe the specific action the asker needs to take? As you've written it, this is mostly just a link to an external site.
Hello David. I updated the answer and added a second bullet point. It's actually that simple and the link is provided as a reference to complete my answer. Now, that I have updated the answer with more details, it would be nice if you could remove your down-vote. My initial answer was a lot more than just a link to an external source. First line described the problem precisely, third line was the solution, fourth line provided a reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.