postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

EHOSTUNREACH #13224

Open ikrom92 opened 4 days ago

ikrom92 commented 4 days ago

Is there an existing issue for this?

Describe the Issue

Server: I've set up a virtual machine using Virtual Box and gave IP 192.168.56.111 (hosted-only network). The os installed on virtual machine is Debian. The web-server is NGINX, listeningo n port 80. The virtual machine is running on my MacBook Pro 16 (macOS Sequoia).

Client: I've configured /etc/hosts file on Mac and set test.vm.local to 192.168.56.111.

The problem: Trying to send request to http://test.vm.local. Receiving an errorr: Error: connect EHOSTUNREACH 192.168.56.111:80.

  1. Tried on browser Sarari, it works.
  2. Copied postman request as cURL and pasted to terminal and run: it works.

Note: This issue began recently, so it worked without any problem so far. Also, sometimes it starts working.

Steps To Reproduce

  1. Create virtual machine on Mac using VirtualBox and set Host-only Network.
  2. Deploy NGINX on your virtual machine on port 80.
  3. Edit /etc/hosts file on your Mac and set test.vm.local to your virtual machine ip address.
  4. Open Postman and send requests to test.vm.local.
  5. Try different conditions until you get Error: connect EHOSTUNREACH 192.168.56.111:80 error.

Screenshots or Videos

Screenshot 2024-10-28 at 00 43 38

Operating System

macOS

Postman Version

11.18.0

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

ikrom92 commented 4 days ago

It might seem as duplicate but it is not. The issue is not solved.