ERR_CONNECTION_REFUSED while accessing an image file on local network - php

I have 2 websites running in my IIS in one machine. One is the PHP website and another is the ASP.NET WebApi. The PHP site is my family website which is kind of an adapter between HTML and WebAPI. Now, in my PHP site I have a page which loads all family pictures from a selected folder on my home wifi network.
If I browse PHP site from the same machine where API is hosted then everything works great. But when I browse my PHP site from other machine in my home wifi network I see ERR_CONNECTION_REFUSED
As far as the permisssions are concerned I have IUSR full control over my image folder.
Any idea where I am missing the mark?

Your Internet is not working or the server is not set up to receive http request

Related

HTMP/PHP opening remote text document in browser not working Apache( IIS)

I have had a basic intranet working fine for a few years running on an IIS server. Our ERP server drops automated reports into a shared (read only) location the users can access on the LAN. 10.0.1.111
To make things simpler, i created a web page which links to named documents with better titles etc in an alphabetical list.
These opened and displayed in a basic webpage (which was all that was wanted) using
<a href="file://10.0.1.111/PRT/01PRINT105" target=_blank>Purchase Report</a><BR>
Everything works fine and still does, from the old server.
I then copied the Intranet to an Apache server running on a synology NAS drive and nothing works.
Any help recommendations gratefully received. No error messages displayed, just a page that doesn't do anything.*
*The initial page with links show, the hyperlinks don't do anything
PHP or HTML

How to access a localhost subdomain?

I have a script which redirects the user to a mobile subdomain like m.localhost.com if he/she access the local site on a mobile phone or tablet. Everything works fine on my PC (The place where my local website is hosted and I'm using Apache 2.4 and PHP 5.5) but when I type my ip into my mobile browser for example, it redirects me to (m.192.168.1.102) and when I type localhost.com it doesn't shows me my local website even though the host and the mobile are connected to the same network. I don't want to edit every hosts file on every device, I just want to visit the subdomain on another device rather than my PC. I know it might be a stupid question but how does the hosts like 000webhost and Ifastnet and many others redirect their users to subdomains?
Thanks in advance

Live reload not possible in IDE since sql server not acccessible remotely

Scenario: PHP/mySQL web project hosted on remote server with FTP access
IDE: Atom
Problem: I want to be able to use live reload so that edits are instantly viewed in browser. This cannot be done since remote MySQL server is only accessible within domain - thus PDO/PHP cannot access data and web page cannot be created.
jscript and CSS can be edited live with Chrome debugger tools but requires copy/paste to upload changes with FTP.
Is there a solution to this scenario?

Wordpress website renders differently on devices apart from the local server

I am using my laptop as a test environment for a wordpress website before I move it to an online server. I have this setup with a xampp sever running on the local machine. Wordpress is installed and running a theme which I have modified somewhat. When I navigate to the website from the local machine by going to 'localhost', the website displays correctly, however if I navigate to the website from another device whether it may be a computer, phone or tablet, the website seems to exclude css styling and only displays plain html. Any insights would be appreciated.
I know that with some browsers, sites in your local intranet except localhost are rendered differently. I am not sure whether this is the issue here. I am using Chrome Version 42.0.2311.135 dev-m
When you're accessing the site on another machine, open up the developer tools in your browser and see where the link to your CSS is pointing at.
It sounds like that CSS URL is hard-coded to be pointing at localhost (which would explain why it only works on your machine). It could also be the case that you have set your site's domain to be localhost in Wordpress which may be using that to render the URLs.
Double check your Wordpress settings, and also your theme's code.

No CSS/formatting on wordpress blog from external computers

I'm trying to set up a wordpress blog hosted from my computer using this tutorial. When I visit the site on the computer it's hosted on, via localhost or the IP of the computer, the site looks fine, but when I visit it from another computer it looks like this.
All Wordpress resources (stylesheets and images at least) use Wordpress' URL configuration. You can find it as the 3rd option down in the General Configuration page of your Admin. This is due to the way that themes are to be programmed and create the header of the blog using the bloginfo function that uses those configuration values to generate the rest of them
What is probably happening is that such URL is using either localhost or 127.0.0.1. If that is the case, when accessing the blog from your own PC it would show fine as both do resolve to the local machine. If you access it from an external PC, they would not resolve to the PC that is serving Wordpress but also to the local PC - which is not able to provide them.

Categories