How to fix access localhost (xampp) from internet? - xampp

I have installed xampp and test my website on localhost. But when I want to access my localhost fro internet, I use my public IP, but it have a problem like this: enter image description here
enter image description here
How can I fix this? This is my router. I don't know is this a mistake port forwarding or what? Hope you guy help me.

Related

How can I access my localhost project in Mobile using Virtual host with XAMPP

I have a WordPress Project which I need to test in Mobile. I use XAMPP and accessing the project in my localhost using the following Virtual Host URL "localhost.sacon". It is working fine in the localhost but not in mobile. Followings are the steps I did.
Connected my mobile and local machine in same WIFI network with the IP 192.168.0.104.
When I enter 192.168.0.104 in my mobile, I am able to see the XAMPP default home page.
When I put my project in "htdocs" folder, I am able to access it in mobile by 192.168.0.104/sacon.
But my requirement is to access the Project with Virtual Host.
My virtual host is "localhost.sacon" and it is working fine in my localhost
But virtual host is not accessible in mobile. I tried "192.168.0.104.sacon" but it is not working. What is the solution.
I already read couple of stackoverflow solution but nothing was worked for me and the explanations are seems to be bit difficult. So what is the exact method i need to follow here. I hope a step by step explanation will make sense. It is not only helpfull for me but for others also. It will be a Great Help for me if anyone can fix this with simple explanation. Thank You Very Much in Advance!

VirtualBox redirects to localhost when loading JetBrains Upsource

I've hit a brick wall and can't get past it as there isn't too much information out there on this problem. I have a VirtualBox on my Windows machine running Ubuntu with JetBrains Hub and Upsource installed on it. For making it public I am using apache2. I am able to run 'upsource.sh start' and start upsource ok, however when I try to access the website from an external network, the page gets stuck at 'Loading...' and then fails with '[name of my virtual box] server DNS address could not be found.'.
I am able to access the site from the internal network and everything works fine. I am forwarding a port from my public IP to the virtualbox port that is listening for JetBrains Upsource.
My hint is that the virtualbox is redirecting to itself and the client on the external network cannot reach that address. I am unfamiliar with apache so I'm not sure that it's configuration is setup properly. If anyone has run into this problem and fixed it or if anyone knows how to begin to debug/fix this... I'm all ears.
Thank you guys.
EDIT: The server seems to be hanging when the request for OAuth2 is made. Its making request to the virtualbox's local address rather than the public ip.
To anyone who runs into the problem in the future, I had to reinstall and put in the correct base-url. I'm guessing I was missing some properties that I needed to re configure and I could not find anywhere what all properties that I could configure.

How can I access localhost from another computer in the same network? [duplicate]

This question already has answers here:
Accessing localhost (xampp) from another computer over LAN network - how to?
(25 answers)
Closed 8 years ago.
I just recently downloaded WAMP Server to view and edit php webpages but now I would also like other people in my network (connected to the same wifi) to be able to access localhost and all the files that I have saved. I have already tried to access localhost and my WAMP server was already online, however that didn't work. Can someone help me out? Thanks in advance!
You need to find what your local network's IP of that computer is.
Then other people can access to your site by that IP.
You can find your local network's IP by go to Command Prompt or press Windows + R then type in ipconfig. It will give out some information and your local IP should look like 192.168.1.x.
localhost is a special hostname that almost always resolves to 127.0.0.1. If you ask someone else to connect to http://localhost they'll be connecting to their computer instead or yours.
To share your web server with someone else you'll need to find your IP address or your hostname and provide that to them instead. On windows you can find this with ipconfig /all on a command line.
You'll also need to make sure any firewalls you may have configured allow traffic on port 80 to connect to the WAMP server.

Can't access my index.html (via Apache) from other computer (LAN nor Internet)? Please help

lets make it simple to answer.
I installed Apache 2.2. Now when I do 127.0.0.1 in Firefox, I get the "It works" page. When I do 10.0.1.10 (my servers internal IP) on another PC on the SAME network, I won't get anything :-(. I forwarded port 80 on my router and made sure Firewall doesn't block Apache. If I type my external IP:80 I still can't get into my "index.html". My settings (more less default)
Network Domain: localhost
Server Name: localhost
I also got a FTP via FileZilla running on that PC. It works perfectly, even over Internet. I have also set up a DynDns hostname. If I do ftp://mydyndns.hostname.com I get to my ftp server.
What am I missing? Some more Windows setup?
Thanks a lot in advance!
I installed Linux on my computer and found all servers run better on it :) Thanks everyone...

http://localhost not working in firefox but it works in IE

While i was trying to browse my project through IIS i was not able to view it in firefox , but able to view in IE. Can anybody solve this issue?
steps i have done...
I have hosted my project on IIS
Browse like http://localhost/myproject in firefox and IE
but able to do in IE but cannot access this in Firefox.
But if i put my machine name or local IP address in place of localhost i was able to browse. I am pretty confused with this issue? Can anybody help me to tackle this issue?
Take a look at your hosts file in
C:\Windows\System32\drivers\etc
It may have a line like that
127.0.0.1 localhost
Try uncommenting it if it is, or you may find something wrong in this file. It is the file your browsers read to match names to IPs and override DNS info.

Resources