-3

I have created a local node server on my laptop. And I can access it using the private IP (like 192.168.1.9:8080) on same network on my other devices like phone and other PC. I have disabled firewall.

But now I want to access it using my public IP. So that anyone using a different Internet connection can also connect to it. But it just doesn't respond.

I added a DMZ Host:

enter image description here

Then I added this port forwarding setting (I saw it on YouTube tutorial). I'm not very sure if it's correct or not.

enter image description here

And here is network status:

enter image description here

But it made no difference. Am I doing something wrong?

Note: My problem is probably not related to Hairpin NAT.

PS: If you think I've shared some sensitive/private information in the screenshots, please let me know I'll update it immediately.

6
  • 1
    The search term you are looking for is hairpin nat Commented Apr 23, 2022 at 17:44
  • @GeraldSchneider Thanks I'll try them and will update soon. Commented Apr 23, 2022 at 17:53
  • @GeraldSchneider I'm not sure if that is the thing I am looking for. Isn't Hairpin NAT is more about connecting to your server using public IP with same network? Note that I want to access my server from a different brand network in a different location. I think that wouldn't count hairpin NAT? That is how I understood it. Commented Apr 24, 2022 at 3:11
  • "This question already has answers here:" No it doesn't. Commented Apr 26, 2022 at 2:51
  • Note for future visitors: Hairpin NAT is a different issue. Nothing to do with issue described in my question detail. Commented Apr 26, 2022 at 2:52

1 Answer 1

2

first check if your ISP doesn't user GCNAT and provides you with a real IP address. then you need to configure a firewall and port forwarding your router. Don't do all port range from 1 to 65535, configure only ports you need.

yourrounter_IP:8080 => localserver_IP:8080

7
  • Do I need to put same IP and ports in WAN and LAN in port forwarding? I don't know what WAN host IP and port are for. Commented Apr 24, 2022 at 4:38
  • WAN IP is an IP your rounter gets from ISP via DHCP. "WAN and LAN" don't have to be the same, you can put any. if you put WAN port 80 and LAN port 8080 your router with forward all traffic from its public ip port 80 to your local server's private ip port 8080 Commented Apr 24, 2022 at 5:23
  • So if I put different ports (80 for WAN, 8080 for LAN), I should be able to access my server using yourrouter_IP:80 ? Commented Apr 24, 2022 at 5:28
  • i.sstatic.net/grnIo.jpg Commented Apr 24, 2022 at 10:51
  • I think the problem is GCNAT. In this screenshot, you see 100.100.x.x IP which is different from public IP. Right? Commented Apr 24, 2022 at 10:52

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.