简体   繁体   中英

Domain name is not loading the response but localhost works

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM