0

I am using mountebank for mocking responses which is running in Docker on port 2525. Stubs are created on port 443. The response is successful when I use localhost but not with the domain name. The domain names are redirected in hosts file.

OS: Windows 10 Pro

Failed to hit mock with the domain name

Hosts File

Postman console error

Wireshark log for the domain name

Successful localhost logs which uses IPV6 internally

Postman Successful Response

Successful response console details

Wireshark logs for localhost

Dhivya V
  • 1
  • 1
  • Hi and welcome to SO! We would love to help you, please see https://stackoverflow.com/help/how-to-ask and edit your question to make it easier for us to help you. – jhl Aug 09 '22 at 14:48
  • This issue is resolved by redirecting all domain names to ipv6 address – Dhivya V Aug 19 '22 at 12:15

1 Answers1

0

This issue is resolved by redirecting all domain names to ipv6 address. Also listening to ipv6 address using netsh command. Referred to Can't access 127.0.0.1

netsh http add iplisten 127.0.0.1
Dhivya V
  • 1
  • 1