soydepr
Posts: 155
Joined: Mon Mar 24, 2014 10:51 am

Can’t connect from outside network

Wed Aug 22, 2018 2:49 pm

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

KnarfB
Posts: 198
Joined: Wed Dec 14, 2016 10:47 am
Location: Germany

Re: Can’t connect from outside network

Wed Aug 22, 2018 3:19 pm

What is the IP address of your server? Is it a public IPv4 address?

soydepr
Posts: 155
Joined: Mon Mar 24, 2014 10:51 am

Re: Can’t connect from outside network

Wed Aug 22, 2018 4:33 pm

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

pcmanbob
Posts: 6686
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Can’t connect from outside network

Wed Aug 22, 2018 5:53 pm

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.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

soydepr
Posts: 155
Joined: Mon Mar 24, 2014 10:51 am

Re: Can’t connect from outside network

Wed Aug 22, 2018 6:02 pm

I’m using freedns.afraid.org as dns that points to my router . This was working fine on my previous pi

soydepr
Posts: 155
Joined: Mon Mar 24, 2014 10:51 am

Re: Can’t connect from outside network

Wed Aug 22, 2018 6:29 pm

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

soydepr
Posts: 155
Joined: Mon Mar 24, 2014 10:51 am

Re: Can’t connect from outside network

Wed Aug 22, 2018 7:01 pm

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

Return to “Networking and servers”