I'm trying to create a live web server on my Windows 8.1 computer.
I am connected directly to my modem using ethernet (I do have a wireless router) but I am not connected to it on this computer (desktop).
I have XAMPP working and my website appears at http://localhost/home
However, if I put in my IP from www.whatismyip.com it does not load my web server.
What am I missing?
You need to create a Port Forwarding for Port 80 to your Computers local IP Address. There should be a Admin Panel for your Router (normally the Gateway - check out with Start - Run - cmd -> then insert "ipconfig" and check out the Gateway.
And i guess in XAMPP the Internet Access is blocked. But this is a simple Apache Server, so you need to open your httpd.conf File (Should be: “c:\xampp\apache\conf\extra\httpd-xampp.conf)
Search here for:
There should be a "Deny from all" - add a # in Front to deactivate that rule.
Restart your Xampp and it should work.
Here you find more Information about Port-Forwarding:
https://managewp.com/how-to-access-a-local-website-from-internet-with-port-forwarding
Any maybe you will also need to activate Port 80 on your Firewall (depends on your Configuration)
You need a method of telling request sent to your public ip to be forwarded to the private ip of the web server. Try logging into you device (router etc) and setting this up.
Related
I started a server inside my PC and when I want to visit localhost with a browser I have to write
localhost:8080
When I am trying to enter in the site with another PC or Phone through WIFI I have to write something like:
192.168.0.123:8080
My question is, is there any way I can enter inside the site I am hosting inside my PC without writing the port, like:
192.168.0.123
(N.B. : I just want to use this inside my wifi network. Going public is not my target)
With http, unless the port is 80, you have to specify it.
So you'll have to configure your server to use port 80 instead of 8080.
I can access my wamp server via localhost in my system (port :8080), but not with public ip.
But then again when i try to access my wamp from other networks via public ip, yes i can get in.
The error i receive is "ERR_CONNECTION_REFUSED" it says that connect is rejected.
I have configured everything correctly, yes i have the apache config file set to allow all.
any clue?
Take a look at this. LINK
It could be NAT loopback that causes this for you
I have installed WampServer Version 2.4.9 on windows 7
Created a folder in wamp/www/myproject/index.php ,I am using user account(not admin account).The index.php conatins HTML code only,I tried with index.html too,but nothing worked.
The problem:
When I run localhost or phpmy admin by typing localhost in browser URL space then it shows the main window and then i click on project and get these messages:
This webpage is not available
when I click on more button in browser
The server at myproject can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to
its Internet address. This error is most often caused by having no
connection to the Internet or a misconfigured network. It can also be
caused by an unresponsive DNS server or a firewall preventing Google
Chrome from accessing the network.
I tried running from admin account too but that also did not worked.I tried running the application with off state of firewall too but that also did not work
EDIT:
I uninstalled xxamp ,I have apache tomcat too in my system that is used with JSP ,it takes 8080 port.but it is not running currently.The default port for wamp is 80,I tried running it on 81,8080,but both the thing didn't work.Skype also take port 80 so I exited from skype too...
when i type localhost/myproject,It worked.
but when I type localhost and then main page of wamp comes...and when click on localhost then the dns lookup failure occur that is written initially
check whether port 80 is free. You can check it in your apache conf file.
I have the following setup below:
Amazon EC2 instance.
IPs:
192.168.1.200 = eth0 = x.x.x.x public ip address
192.168.2.200 = eth1
Apps:
Apache
vhosts:
-domain.tld
PHP
The strange part is this. When I try to browse domain.tld over public ip address, its working fine. But when I browse it through 192.168.2.200, it will keep waiting until no display coming out in the browser. A simple index.php with a text "test" inside is working fine. Only when the php codes like phpinfo() will not be working.
Do you have any idea what could be the problem in php or apache or my network? I have already open all ports on the firewall but the problem still persist.
Thanks.
I found the issue - it's due to incorrect network routing table on the EC2 server including blocking of traffic that rectified through playing security settings.
Thanks to your comment #Dagon.
I'm trying to use remote debugging in Eclipse/Windows via an SSH tunnel as described in these articles on PHP Cloud.
http://www.phpcloud.com/help/putty-ssh-debug-tunnel
http://www.phpcloud.com/help/debugging-overview
I've been able to establish an SSH connection using PuTTY with public/private key managed by Pagent. I'm now facing issues when testing the debugger in Eclipse's Debug Configurations menu. I've set up a server with the following details.
Base URL: http://lhith.my.phpcloud.com (the link to my application on
PHP Cloud).
Local web root: C:\Users\Luke\workspace\lhith (the path that contains
index.php on my local copy)
Path mapping: /.apps/http/__default__/0/1.7-zdc (the path containing
index.php on the server) -> /lhith (path containing index.php in the
workspace)
File: /lhith/index.php
URL: http://lhith.my.phpcloud.com
I also configured Zend Debugger to use port 10137 and the Client Host/IP of 127.0.0.1.
When I connect my SSH session and then try to test the debugger I see the error "A timeout occurred when the debug server attempted to connect to the following client hosts/IPs: -127.0.0.1"
What could be going wrong here? What can I do about it?
Thank you for any assistance provided.
I made some progress on this tonight. I setup port forwarding on my internet router to forward port 10137 to my computer and then added my internet routers public IP address to the list of allowed hosts on the Zend Server debug settings on my.phpcloud.com.
I also added this IP to the Debugger configuration in Eclipse and was able to successfully connect to the remote system. It appears there is a problem with the SSH remote tunnel settings, I will keep digging but I wanted to share my findings so far as this has been driving me crazy!