×

Switch Account

Port forwarding only works seen from outside my local network?

SOLVED
Reply
Highlighted
Contributor
Contributor
Posts: 2
Registered: ‎01-04-2020

Port forwarding only works seen from outside my local network?

Message 1 of 7
(2,072 Views)

I have a new Fios Home router (the white can). I set up port forwarding for SSH and HTTPS. I also have dynamic DNS set up with no-ip.

 

From anywhere outside my local network, like my phone when I’m away or at work, I can SSH or browse to the DDNS server name and I connect to the computer being forwarded to at home. All is well.

 

The moment I’m at home on the local network, the exact same thing fails. Any attempts to connect via the DDNS server name fail with what looks like a timeout awaiting a response. But I can still connect by internal IP address (192.168.1.xxx) to that computer.

 

Has anyone else seen this or fixed this? It feels to me like there’s a bug in the router firmware.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Platinum Contributor III Platinum Contributor III
Platinum Contributor III
Posts: 7,480
Registered: ‎12-15-2010

Re: Port forwarding only works seen from outside my local network?

Message 2 of 7
(2,035 Views)

It sounds like NAT Hairpinning is not set up on the router.

 

Try this if you only need this to work for one device. Log into the router's web Interface, go to Advanced, and then open the DNS Settings section. See if you can add in a Static DNS entry for the computer you have these ports forwarded to. You'd add your Dynamic DNS name in as the hostname and your computer's internal IP address in for the address / A record.

 

Disclaimer: I do not have a G3100 to play with. If this is not possible, let me know!

View solution in original post

6 REPLIES 6
Highlighted
Platinum Contributor III Platinum Contributor III
Platinum Contributor III
Posts: 7,480
Registered: ‎12-15-2010

Re: Port forwarding only works seen from outside my local network?

Message 2 of 7
(2,036 Views)

It sounds like NAT Hairpinning is not set up on the router.

 

Try this if you only need this to work for one device. Log into the router's web Interface, go to Advanced, and then open the DNS Settings section. See if you can add in a Static DNS entry for the computer you have these ports forwarded to. You'd add your Dynamic DNS name in as the hostname and your computer's internal IP address in for the address / A record.

 

Disclaimer: I do not have a G3100 to play with. If this is not possible, let me know!

View solution in original post

Highlighted
Contributor
Contributor
Posts: 2
Registered: ‎01-04-2020

Re: Port forwarding only works seen from outside my local network?

Message 3 of 7
(2,005 Views)

Thanks for the suggestion. That worked for me!

 

It still feels though like this is some kind of bug, though. To my recollection, I don’t recall doing that on the old Quantum Gateway router that this replaced. I could be wrong though...

Highlighted
Contributor
Contributor
Posts: 3
Registered: ‎03-11-2020

Re: Port forwarding only works seen from outside my local network?

Message 4 of 7
(1,319 Views)

I just upgraded to the G3100 router today and I am having this exact same issue. I have tried adding the hostname to the DNS server records and it is still not working. I have no issues connecting from my phone on cellular but resolving the hostname when on the local network it is still not working. Never had this issue on using the quantum gateway router.

Highlighted
Contributor
Contributor
Posts: 3
Registered: ‎03-11-2020

Re: Port forwarding only works seen from outside my local network?

Message 5 of 7
(1,262 Views)

Digging more into this the router just appears to refuse any connection that loops back to it. That includes records in the DNS Server settings. Setting test.com to point to Google's IP address works fine but setting test.com to point to a local device IP results in a connection refused. Using that same local device IP directly, pulls up its web interface. Same result when using a Dynamic DNS service like no-ip.com. When connecting externally everything works fine but on the local network the host name results in connection refused because it is looping back.

Highlighted
Platinum Contributor III Platinum Contributor III
Platinum Contributor III
Posts: 5,878
Registered: ‎09-24-2008

Re: Port forwarding only works seen from outside my local network?

Message 6 of 7
(1,149 Views)

Ok. This is a reply to all.

 

#1 Get a domain name. This means for example use the service no-ip.com

 

#2 You need to setup a LAN Static IP some how. This means either manually or telling the router to give out the same IP Address to this given computer.

 

For example of the non manual way. If my Hardware/MAC/Pysical Address is 00:00:00:00:AA:A0, I would tell the router to handle out to 00:00:00:00:AA:A0 192.168.1.9

 

#3 On the computer(s) that are behind the router, you need to find and edit something called the HOST File. The location of this file varies based upon the OS. As need be see, https://en.wikipedia.org/wiki/Hosts_(file)

 

#4 Let us say your domain name is example.com and that your LAN IP

 

In the HOST file, enter in

 

192.168.1.9 example.com.lan

 

#5 Restart the computer that you edited it's HOST file, as need be.

 

#6 Now for accessing the server, directions.

 

a) Use example.com.lan when you are behind the NAT router.

 

b) and use example.com when you are NOT behind the NAT router.

 

#7 For users without a domain and do not want one:

 

a) make up a domain name, add in .LAN into domain name and add that to your HOST File.

 

b) when not behind the NAT router, without a domain name you need to use the public IP Address.

 

---

Note It is very important to follow RFC 6762 down where it clearly says Appendix G. Private DNS Namespaces. REF for RFC 6762 = https://tools.ietf.org/html/rfc6762

 

 

If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.


 

Highlighted
Contributor
Contributor
Posts: 1
Registered: ‎05-06-2020

Re: Port forwarding only works seen from outside my local network?

Message 7 of 7
(378 Views)

Just got off the phone with the G3100 expert team. They say its a "Basic" feature that you not be able to access your local services via the public ip nor your domain name. If you ask me this is not a feature and sounds more like a bug. Like others have mentioned, we did not have any such issues with previous equipment. I asked if I could put in a feature request to see if desired behavior can be implemented in a future update and he said he put it in but it cant be guaranteed. For now I am using the host file trick which I saw someone else has already posted.

How-To Videos
 
The following videos were produced by users like you!
   
Videos are subject to the Verizon Fios Community Terms of Service and User Guidelines and contains content that is not created by Verizon.
Covid19


Browse Categories
Categories:
Posts

Verizon Troubleshooters
Unable to find your answer here? Try searching Verizon Troubleshooters for more options.