View LocalHost Via iPad - windows

I would like to view my locally hosted website via an iPad or other mobile device.
I have seen that many other people have succeeded in doing this and am unsure where I'm going wrong.
I have window 7 with iis. I have tried my_ip_address/index.html in safari with and without windows firewall disabled.
I think port 80 is correct, however I also use phpmyadmin which uses port 3306 if that means anything. (I did try this though my_ip_address:3306/index.html but nothing changed)
I have also tried using the IPV4 address which gives me this error:
Not Found
HTTP Error 404. The requested resource is not found.
And IPV4 DNS Server (which is an almost identical ip address apart from the last digit) and this gives me the following error:
Object Not Found
The requested URL '/index.asp' was not found on the RomPager server.
Return to last page
I'm currently running around in circles so any help is much appreciated. Thanks

I do this without any problems.
Try http://192.168.xxx.xxx:6969 on your laptop, does it work? Try it again with the iPad (obviously using your laptops ip address which I'm guessing looks like the above)
I've found it can be sensitive about the port number but I don't know why, 6969 did work for me.

Related

Connecting to localhost on mac with an ipad

I would like to connect an ipad to localhost:5000 on my macbook. The purpose is that I would like to test how my website looks on the ipad. I followed the steps I found on numerous websites, meaning
I got the name (or ip address) of the macbook with
ipconfig getifaddr $(route -n get default|awk '/interface/ { print $2 }')
which gave 192.268.42.20. So this is the internal ip address within the network created by my rooter. My ipad is also within that network.
I turned off the firewall on the mac. I did not think that is necessary, but I did it anyway.
I went to System Preferences -> Sharing -> enabled Remote Management (here one can find the computer name, but it doesn't make a difference whether I use the ip address or the computer name)
Now I should be able to connect to the localhost on the mac with
http://192.168.42.20:5000
but this does not work. I get the message
This web page is not available
I use a Mac book running High Sierra, 10.13.6. Any idea what I might do wrong?
EDIT: Still no luck with this, but I got something working with
ngrok http 5000
see https://ngrok.com/docs. This works for what I need...
As long as the devices are on the same network, that should work. If they are not, you would have to enable port forwarding.
Try restarting both devices, then rechecking the IP address.
Make sure the server is running with no errors.
Also verify that you can access the page from the MacBook itself.
Aside from that, I don't know why it would not be working.

Why do I get a 403 when hitting a localhost iisexpress site hosted on a VM

So before I start, I know how to open up IISExpress to the network, there's plenty of articles about this, I even wrote one. However, these approaches do have limitations - most notably the need to add bindings which I've found to be hit-or-miss and worse, breaks any code that does things based on hostname.
I am on OsX running Windows 10 inside of Parallels and earlier this week I thought I should try to get localhost forwarded into the VM in the same way that I can do with docker containers.
I got really close, but I cannot figure out the last step. Here is what I did and what I am seeing:
I temporarily disabled my firewall on Windows
I forwarded the correct port (44300 in this case) to the guest VM and rebooted it.
I ran iisexpress through the command line so that I can see the full log (I tried through visual studio as well)
What I'm seeing is that when I hit localhost:44300 from inside the VM, my site loads fine and all sorts of things are logged.
But when I hit it from the host I'm getting
HTTP Error 403. The request URL is forbidden.
There is nothing logged by iisexpress in this scenario.
However, I know that the request is in some manner getting through since if I stop iisexpress and head to localhost:44300 again on the host, I get the standard
localhost refused to connect. ERR_CONNECTION_REFUSED
The fact that iisexpress is or is not listening on that port is cascading up to the host VM therefore, but nothing else is getting through.
So I'm a bit at a loss - it almost looks kinda like a binding thing, but as far as iisexpress knows, due to the port forwarding, wouldn't this request be coming from localhost? How can it tell if it is not? Even that sounds unlikely due to the lack of log messages. Also I never see anything pop up in fiddler.
What I wonder instead if there might be some yet other windows component that sees something bound to 44300, sees an request coming over the network stack, and shuts it down. Is that a thing?

Browser can't access Virtual Machine development website in Windows 10

Not sure what is going on here. Some months ago it worked and now it doesn't. I have a Windows 10 environment running a virtual machine for testing websites using Vagrant. The config in Vagrant is fine and sets up the IP address (192.168.33.10) as a private network. In the Windows Hosts file I have the development domain setup as well. For example:
192.168.33.10 test.dev
After 'vagrant up' all looks fine. A ping of both the IP and development domain works and a 'curl' of the development domain returns the correct html.
But when I put the development domain into a browser I immediately get an 'Unable to connect' error. The error comes instantly so it is getting to the server but then something is rejecting it.
Does anyone have any clues please?
After the best part of a week trying all sorts of things I found the answer. The domain '.dev' is now a legitimate global domain and Firefox and Chrome now force anything 'name.dev' to HTTPS which then throws back an error that it can't connect.
See https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/

Cannot Access XAMPP Web Server From External Network

I currently have 4 websites running off my home desktop PC using XAMPP. They are running on ports 80, 81, 7733, and 25293.
The first three run fine when accessed from an external network, however the last (25293) won't load. (This site can't be reached. ERR_CONNECTION_FAILED)
I am port forwarding all 4 ports the exact same way. Just as soon as I'm not on my local network, the page stops loading.
I attempted to open up the port in my firewall as well however that achieved nothing. What can I do to resolve this?
The error I receive upon visiting the port on an external network:
This might be a common issue because you are using 5 digits port number, you may need port validation.
For example this was known issue for Drupal:
https://www.drupal.org/project/link/issues/182916
Are you running Linux, or Windows server?
Do you have another computer on the same network? If so, can that computer access your webserver? Try, because that must be your first step, then worry about being visible to the outside world.
I just saw this link and this one. Try to see if it solves your problem.

My IP seems to be blocked by web hosting server

I have a strange problem, I just installed my php web site on a shared hosting, all services were working fine. But after configuring my app I just could visit my web site only once, other attempts gives:
"The server is taking too long to respond.".
But from other IP i can access, but only once, it seems all ip addressess beeing blocked after first visit(even ftp and other services get down, no access at all from the IP), can anyone help to explore this problem ? I don't think that it's my app problem, the app works fine on my local PC.
Thanks.
First thing to try would be a traceroute to determine where your traffic is being blocked.
In a windows command prompt:
tracert www.yoursharedhostingserver.com
At the moment, trying to access this address gives this:
Fatal error: Class 'mainController'
not found in
/home/myicms/public_html/core/application/crApplication.class.php
on line 181
I have tried it multiple times and it didn't block me. It might be that You have already solved this problem.
As far as I know, the behavior described by You could only be explained by a badly configured intelligent firewall. It may have been misconfigured by Your host.
If You visit a site at a certain host and suddenly You cannot access an ftp on this host, then it's either a (really bad) firewall or a (very mean) site that explicitly adds a firewall rule to ignore that address.
Some things that You might look into:
It might be something with identd too. What was the service You have configured on Your host? Was it by any chance any kind of server-controll panel (that might have an ability to controll a firewall)?
Is the blockade permanent, or does it go off after 24h, or does it only go off after rebooting the server? Does restarting some services makes the blockade go off?
Did You install any software that "protects Your server from portscanning"? It might be a bit too aggressive.
I wish You good luck in finding a source of this problem!
Chances are that if you can access it once that its actually working. The problem is more than likely in the php code than in the server.

Resources