I have been trying to make an access to my Apache server on Raspberry Pi from internet for several days.
I set up Apache, PHP, mySQL, myadmin and put index.php to 'www' folder
I edited dhcpcd.conf to set static IP.
interface eth0
static ip_address=192.168.1.220/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
I registered mydomainname.net on no-ip.net for my internal IP address
Installed No-IP Dynamic Update Client on raspberry pi and it's status is active
I opened port 80 on my router for static IP Address of my RASPBERRY (192.168.1.220)
On my router I added my no-ip account and it shows status 'Success'
I even tried to change Apache listened port from 80 to 8090
But, whatever I do, I can't get access to mydomainname.net from internet, but I can do it from my local network on my static Raspberry IP - 192.168.1.220.
So the problem is the IP you are using is your internal IP. This IP is inaccessible from the outside. As long as you are inside your network you can use the internal IP adress tho.
try using https://www.canyouseeme.org/ to obtain your router IP adress maybe then you'll be able to acces it trough IP already. also this is the IP that you need to register on the host of your site.
Related
I bought a Static IP from my ISP, in router config in dmz i set static IP to my pc ip (which runs an apache tomcat), I can reach the tomcat server from inside the network but it's not accessible from outside, what shoud i do?
better than use DMZ is using port forwarding on your router. You can set only :80 opened and after this, it should be working.
Also, do you have your public IP configured on your router, or your router have on WAN port some internal IP of ISP?
If you have internal IP on WAN, you need setting up firewall rules to this WAN IP, not to your Public.
I want to setup a website on my raspberry pi 3 (with raspbian) to be accessible from the internet.
I installed Apache webserver (v 2.4) and Word Press, and I can connect to the website from the LAN.
To have my website accessible from the internet, I configured my router to perform forwarding of port 80 to a static IP given to the raspberry pi.
However, when i try to access the website from the internet (using the public IP 213.57.x.x), the browser is automatically redirected to the internal IP (192.x.x.x).
For me it looks like the default Apache settings (which i didn't change) perform IP forwarding.
I suspect that the Apache is the problem because I do not encounter the same problem on tomcat installed on the machine (so the router configuration is OK).
I have subscribed to Local Broadband plan in Delhi, They have 1 static ip through which their all subscribe use it. When I Enter my ip from outside then it will forwarded to their Local IP management Software Page. How can i access to my web server, Is there my port forwarding technique like through unique port i can access to my localhost from out side or any other way. Even Dynamic DNS service like no-ip isnt working. they all are landing on same IP Management page.
Thank You in Advance.
Note: Using Nginx on Raspberry Pi.
The problem is with your Local Broadband company. Sounds like they need to do the port forwarding, or you from that "management page" you get to access.
You have to be able to forward port 80 from your router (the one with the Public Static IP) to the private (NAT) IP of the PI; both on port 80.
I'm brand spanking new to setting up websites, so go easy.
Basically I setup an osticket system on my XAMPP stack and It works locally no problem but when I try to access it from my public IP it won't connect.
I've port forwarded port 12345 -> 80 as my server listens on 80.
So theoretically if I type in my URL bar it should connect right?
In the httpd.conf file for Apache do I enter the external or internal IP address? I'm assuming I leave it as localhost because the .conf file is local to the server.
My networking setup:
Firewall setup:
<PublicIP:12345> ALLOW <PriavteIP>
Port forwarding setup:
<PublicIP:12345> -> <PrivateIP:80>
It's hard to tell without understanding more about your setup. I'm going to assume you have a router that connects your internal network to the Internet, and you have one or more computers connected in your network, and your server is one of those.
So are you talking about the port forwarding rules on your public-facing router's firewall? If you are forwarding port 12345 from your router to port 80 on your server, the reason it won't work is because a standard HTTP request from a public machine will come to your router on port 80, not port 12345. Are you entering in a URL with the 12345 port number in it? If anything, you should simply be routing all requests to port 80 on your router to the IP of your server.
You can check this if you try to view your web site using the port number in the URL. So if your IP address to your router is 5.6.7.8 you would enter http://5.6.7.8:12345 and this would load your web page, as the request for a page from port 12345 would get forwarded to port 80 on your server. But honestly I think you just need to get rid of port 12345.
I have a site in my local which is running under xampp.Now in another Mac I want to access the local site.It can be done via sharing the ip? or something to write in host file.The source machine is windows and the target machine is mac.
I dont know how to include the ip in host file in Mac.
Assuming that it's running on port 80 or 443 and your firewall is set to allow requests on those ports, you should be able to navigate to the ip address in a browser. If you're requesting your local site from outside your subnet then you might need to configure port forwarding on your router