Dear All,
I installed an Apache on my debian server.
After that I registered a dns name on noip.com and I set a port forwarding (source port: 80, ip address of my server, destination port: 80) on my router at home.
When I try reach the default index.html from the outside (internet side) with the dns name (example.ddns.net), than it's working fine.
But when I try reach the default index.html from my private lan with the dns name, than it isn't working. (ERR_CONNECTION_REFUSED)
It is working from my private lan just in case, when I try it with the private ip of my server.
Do you have any idea for this issue?
Thank you in advance!
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Apache - DNS Name Problem
Re: Apache - DNS Name Problem
The problem has been resolved. I added the DNS name and the IP-Address of the Server to the host file of my PC. So I can reach my website from the outside and from my private LAN also.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Apache - DNS Name Problem
The port forwarding in your router does not work from the private LAN. Quite common. Port forwarding from the private LAN requires special handling in order to work.tocsikbt wrote:But when I try reach the default index.html from my private lan with the dns name, than it isn't working. (ERR_CONNECTION_REFUSED)
No, the problem has not been resolved. This is just a workaround, with shortcomings (as often with workarounds).tocsikbt wrote:The problem has been resolved. I added the DNS name and the IP-Address of the Server to the host file of my PC.
Not on the same computer. If you try to reach your web site from the outside on that computer, it will use the private IP address defined in the hosts file and fail.tocsikbt wrote:So I can reach my website from the outside and from my private LAN also.
A better solution is that the DNS server on your private LAN serves the private address.