I m getting the error net ERR CONNECTION REFUSED

0 votes
after hosting my laravel website on hostinger, images are not loading on my website. I am encountering the above errors. please help
Aug 21, 2020 in Web Development by sodash
• 160 points
13,451 views
Hi, @Sodash,
You have two options for checking the status of the website: the classic way is to try and access other sites. If these can be loaded without the ERR_CONNECTION_REFUSED error message, this is a clear sign of a server-side problem on the actual target page.
Hello Rashmi

Thanks for your response!! Actually this is not my concern i did that already but still not resolved.

How the picture from a local folder inside views i can call from?

2 answers to this question.

+1 vote
Best answer

Hello @ sodash,

Try to edit .env APP_URL to your actual domain name  so that it would make your connection successfully.

Hope it works!!
Thank you!!

answered Aug 24, 2020 by Niroj
• 82,880 points

selected Aug 25, 2020 by sodash
Hello niroj

Thanks....you saved me!

how are you generating that image url

i'm calling the picture from a local folder inside views using "http://localhost/sodashimunger/resources/views/images/1976.jpg"

Hello @sodash,

Use url () function to generate url.

0 votes
@Sodash,

Is your image file is located inside the public folder?
answered Aug 21, 2020 by Rashmi
Yes, is there any other option we have to store image there to be public and its by default public anyway. I have try many way but still cant able to resolve the error net::ERR_CONNECTION_REFUSED.help?

@Sodash,

If the image file is located inside the public folder then you need to add asset() which give the full path of the image.

yes i have done that already but still not resolved
Hey, @Sodash,

I'm trying to replicate your query on my system, I will post the solution here once I fetch something.
Yeah sure.....gald if i get any help from here

Related Questions In Web Development

0 votes
1 answer

Error: Failed to load resource: the server responded with a status of 404 (Not Found)

Your files are not under the JSP folder that's ...READ MORE

answered Dec 16, 2020 in Web Development by Gitika
• 65,910 points
86,984 views
0 votes
1 answer
0 votes
0 answers

Getting the source of this click event in JQuery

I have multiple dynamically created buttons with ...READ MORE

Jul 21, 2022 in Web Development by gaurav
• 23,260 points
983 views
+1 vote
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18, 2020 in Laravel by Niroj
• 82,880 points
21,750 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18, 2020 in Laravel by Niroj
• 82,880 points
2,647 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

answered Mar 23, 2020 in Laravel by Niroj
• 82,880 points
2,504 views
+1 vote
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23, 2020 in Laravel by Niroj
• 82,880 points
41,363 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20, 2020 in Web Development by Niroj
• 82,880 points

edited Jan 21, 2020 by Niroj 780 views
0 votes
3 answers

Explain the difference between visibility:hidden; and display:none?

display:none means that the tag in question will ...READ MORE

answered Dec 14, 2020 in Web Development by Gitika
• 65,910 points
118,349 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP