1

I am facing a weird issue ,

We have a GET URL like below http://localhost:12345/xxxxx/abcsd . If am accessing the URL from the browser it's works fine. But accessing through the code It's giving an error

No connection could be made because the target machine actively refused it 127.0.0.1:12345

And making it more suprise , If I start fiddler the URL works from code.

I spent some good amount of time analyzing this issue not sure , what happening here . Any guess ?

1
  • 1
    Can you show the code where you are accessing the url? Commented Nov 12, 2015 at 13:03

1 Answer 1

1

The most likely explanation is that the code in question is blocked by a firewall and thus the connection is refused because the application doesn't have permission to reach the target.

The next most likely explanation is that the target is listening only on IPv6 (not IPv4) and thus the connection fails when the DNS resolution returns the IPv4 address rather than the IPv6 address.

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

Comments

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.