05-29-2024 01:38 AM - edited 05-29-2024 09:31 PM
Hello,
I have an runtime message error. within a PHP script I try to read from an IPv6 address by using function file_get_contents but during runtime the following message occur, Mary Kay InTouch
Failed to open stream: Connection refused
When running the address in browser it returns the message expected.
$return_value = file_get_contents("http://[ipv6-address]");
Any help would be appreciated! Thanks in advance!
05-29-2024 05:15 AM
Hi @cassie2698bratt I don't think this has anything to do with Cisco equipment or networks?
> Connection refused
The server refused your connection - check the server logs for reason.
Could be the server is redirecting to https and your client doesn't support https for example?
Enable debugging and logging for your client to understand why it's failing.
05-30-2024 07:06 PM - edited 05-30-2024 07:06 PM
Hi @cassie2698bratt ,
What destination port number do you use? Is that port number bound to the destination ipv6 address on the destination host (netstat -an)?
Regards,
05-31-2024 12:33 AM
@Harold Ritter they say "When running the address in browser it returns the message expected." which implies it is bound on the server.
@cassie2698bratt use browser network trace (F12 or CRTL+SHIFT+I) to see exactly what is happening in the browser when fetching the URL.
05-31-2024 02:16 AM
Hi @Rich R ,
You are totally right. It looks like I read over that part.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide