Page 1 of 1

Can’t connect from outside network

Posted: Wed Aug 22, 2018 2:49 pm
by soydepr
Have new pi3+ running lighttp and latest stretch
On my router pointed this pi ip to port 80
Everything is open

[email protected]:/home/pi# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)

But when i connect from the outside i cant access my web server

Any help appreciated

Re: Can’t connect from outside network

Posted: Wed Aug 22, 2018 3:19 pm
by KnarfB
What is the IP address of your server? Is it a public IPv4 address?

Re: Can’t connect from outside network

Posted: Wed Aug 22, 2018 4:33 pm
by soydepr
help me understand the question

my local ip is 192.168.1.9 then i have my router port fwd traffic to port 80 to my local machine
when i ping my external ip i can see it times out

Re: Can’t connect from outside network

Posted: Wed Aug 22, 2018 5:53 pm
by pcmanbob
You may find it's because your router does not support hiarpining, that is you cant contact your external IP port that is forwarded to your pi from within the same network.

You need to use a device on another network for example a module phone on a 3G connection or a pc on a friends broadband.

You might also be able to use one of the free proxy webs sites to do your testing.

Re: Can’t connect from outside network

Posted: Wed Aug 22, 2018 6:02 pm
by soydepr
I’m using freedns.afraid.org as dns that points to my router . This was working fine on my previous pi

Re: Can’t connect from outside network

Posted: Wed Aug 22, 2018 6:29 pm
by soydepr
i think this is my problem
Kernel IP routing table

default should be 192.168.1.1 " how can i change this
Destination Gateway Genmask Flags Metric Ref Use Iface
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default openrg.home 0.0.0.0 UG 303 0 0 wlan0
10.8.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.1.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0

Re: Can’t connect from outside network

Posted: Wed Aug 22, 2018 7:01 pm
by soydepr
question

concerning OC anything i have o consider if i switch from lighttp to apache as web server . i want to test with apache see if i have better luck