Hummm, so where is the - I'm a dork" section? :-)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
davecason
Normal user
Posts: 11
Joined: 18 Mar 2018, 18:02

Hummm, so where is the - I'm a dork" section? :-)

#1 Post by davecason » 18 Mar 2018, 18:13

Hi Gang,

I've got a problem ..... I have an ESP-12 made by WeMos and its a D1 Mini Module.

It's chugging away happily and I can see it inside on 192.168.x.x I also opened the post 80 on my router to let it out.

For whatever reason ... no joy !! I can't see it from outside, it IS port 80 right!? Any suggestions?

Cheers'
Dave

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Hummm, so where is the - I'm a dork" section? :-)

#2 Post by grovkillen » 18 Mar 2018, 18:24

I would NOT expose it to the internet directly. Why do you want that?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Hummm, so where is the - I'm a dork" section? :-)

#3 Post by Shardan » 18 Mar 2018, 18:43

Technically:
The "private" IP addresses like 192.168.xxx.yyy are "non-routeable" by definition.
Most usual routers, even home routers, follow these definitions.

It is possible to reach such an adress from the outside but that's a tricky thing and
needs some knowledge about routing and IP forwarding, adress translation and so on.
On top it needs a sophisticated router that can do this job.

I agree with grovkillen:
I'd never ever connect an ESP to the internet directly.
It's an unencrypted connection so everyone from outside is able to sniff
you data, including password.

A workaround to both, routing problems and encryption might be a VPN.
But describing that in detail is far beyond the scope of a forum post.

Regards
Shardan
Regards
Shardan

davecason
Normal user
Posts: 11
Joined: 18 Mar 2018, 18:02

Re: Hummm, so where is the - I'm a dork" section? :-)

#4 Post by davecason » 18 Mar 2018, 21:23

Here's a snap of two options in the router:

asus 2.png
asus 2.png (43.58 KiB) Viewed 6824 times

Cheers'
Dave

davecason
Normal user
Posts: 11
Joined: 18 Mar 2018, 18:02

Re: Hummm, so where is the - I'm a dork" section? :-)

#5 Post by davecason » 18 Mar 2018, 21:26

Oh it's not going to be out there permanently - its just for now for testing.
Eventually it'll feed a Pi and provide lovely trends and graphs!

It's just odd that it "seems" like the bugger can't get thru the router and I
have lots of stuff passing thru ! I've never run in to this before !?!

Cheers'
Dave

davecason
Normal user
Posts: 11
Joined: 18 Mar 2018, 18:02

Re: Hummm, so where is the - I'm a dork" section? :-)

#6 Post by davecason » 18 Mar 2018, 21:27

Besides if they hack it and discover the hot tub's temp - so be it (grin)
Untitled.png
Untitled.png (38.06 KiB) Viewed 6822 times

Cheers'
Dave

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Hummm, so where is the - I'm a dork" section? :-)

#7 Post by grovkillen » 18 Mar 2018, 21:30

Port forward is the way to go then.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: Hummm, so where is the - I'm a dork" section? :-)

#8 Post by budman1758 » 19 Mar 2018, 05:33

This is one of those times where a configurable web server port would come in very handy... :mrgreen: :mrgreen:
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Hummm, so where is the - I'm a dork" section? :-)

#9 Post by grovkillen » 19 Mar 2018, 06:53

You can redirect any port from the outside to port 80 on the target unit.

Lets say that you use a dynamic dns service and connect to your.dns.com and have three different units that you want to expose to the internet. Then you can do it like this :

Code: Select all

your.dns.com:50000 - - > router portforward 50000 to - - > 192.168.0.100:80
your.dns.com:50001 - - > router portforward 50001 to - - > 192.168.0.101:80
your.dns.com:50002 - - > router portforward 50002 to - - > 192.168.0.102:80
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

uweklaus
New user
Posts: 7
Joined: 28 Feb 2018, 09:33

Re: Hummm, so where is the - I'm a dork" section? :-)

#10 Post by uweklaus » 21 Mar 2018, 13:27

In post #4 you showed the IP list.
What I saw is that the last 2 lines have the same IP. HTTP.. + Hot Tub. Maybe this is the cause

arion_p
Normal user
Posts: 24
Joined: 05 Mar 2018, 22:02

Re: Hummm, so where is the - I'm a dork" section? :-)

#11 Post by arion_p » 21 Mar 2018, 18:43

They also have the same public port which actually IS the issue. The router has no way of knowing which rule to use when connecting from the outside to port 80. Furthermore, some ISPs block port 80, so using another port will solve both issues. Finally there is a source ip address. I don't know what exactly this means but I guess it probably only accepts connections from that address (which is a private address and would never be routed by the ISP)

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests