Accessing emoncms from outside LAN

I'm trying to access my web server from a PC want to be out from the LAN but I can not understand that I have to enter the address in the browser.
I registered with no-ip to have a dynamic DNS, and so far there are no problems; and I put it in the settings page of the router.
At this point, typing "http://ricell.ddns.net/" I should get to my router.
Logically if I add the address of the server on my raspberry should work,
http://ricell.ddns.net/192.168.0.107/index.php
But instead I get the message not found.
Where am I wrong?

 

Thank you.
Marcello.

Paul Reed's picture

Re: Accessing emoncms from outside LAN

Has your no-ip host address been updated with your current public IP?

If you google 'my ip', you will find your public IP address, and then goto no-ip.com 'Manage Hosts', and ensure that your public IP address is shown against ricell.ddns.net

Also, you mentioned your router; I presume that you have enabled ports 80 & 443 (port forwarding) to point to your server's private IP.

Paul

ricello's picture

Re: Accessing emoncms from outside LAN

I have checked and the host IP address corresponds with the no-ip googled (my-ip).
I have also enabled the ports on my router. But the result is still the same.
While the LAN everything works.
I've also attached the pictures.
It is not something that mistake in the address?

thank you
Marcello.

dBC's picture

Re: Accessing emoncms from outside LAN

Logically if I add the address of the server on my raspberry should work,
http://ricell.ddns.net/192.168.0.107/index.php

I think you want just:

http://ricell.ddns.net/index.php

but before you try that, you need to fix this:

$ nslookup ricell.ddns.net
Server:  127.0.0.1
Address: 127.0.0.1#53

** server can't find ricell.ddns.net: NXDOMAIN

Are you sure that's the name you created?

Also, depending on your router setup, you may need to be genuinely outside the LAN when you try it.

Paul Reed's picture

Re: Accessing emoncms from outside LAN

Marcello, can you either post or PM me your public IP address.

We should then be able to pinpoint if the problem is with your router or your hostname.

Paul

ricello's picture

Re: Accessing emoncms from outside LAN

I tried to directly enter the public IP address of my leaving out the name created by the host dns;
http://100.50.03.24/192.168.0.104/index.php
but the result is not changed.

I also tried from my mobile phone connected to the network g3 but fails to load the page.

Thank you
Marcello

Lionel's picture

Re: Accessing emoncms from outside LAN

Hi Marcello

The address in your last post will never work.

Let’s go about this logically.

1) In a browser window type ( Without the quotes) “whatismyip.com”

That will open a page and display your current public IP.  This is the same IP that you should get if you do a nslookup on ricell.ddns.net

If I try nslookup ricell.ddns.net I get a page not found. This means that the URL is not correct. 

2) Take the IP that you got in step 1, and replacing the x’s with your IP type http://xxx.xxx.xxx.xxx/index.php

 If It doesn’t work, your port forwarding is not correct.  ( From the pictures it appears to be correct )

If step 2 works, then you just have to figure out why your DynDNS is not correctly published.

Kind regards

Lionel

Paul Reed's picture

Re: Accessing emoncms from outside LAN

Hi Marcello. Thanks for the PM.

Your public IP address does not resolve to your server, and pinging the IP all attempts are timed out, so I would forget about no-ip.com (ricell.ddns.net) for the time being and concentrate on getting access via your public IP.

As Lionel has said, your port forwarding appears to be ok, but something appears to be blocking the link between your public & private IP.

It may be worthwhile re-checking your public IP address again, because if you have a dynamically assigned IP address from your internet provider, it can change. Also, have you set your Raspberry Pi's IP address as static (via your router) so it does not change either.

You can check if port 80 is successfully open by using this useful tool. If it's not open then I would re-check your port forwarding, and also any firewall settings.

Paul

 

ricello's picture

Re: Accessing emoncms from outside LAN

Hi Paul,

Thanks for the tips.
Go to order.
Leaving aside the discussion of no-ip I checked my IP address, both the public and the lan network that is associated with a raspberry, and everything seems in order.
The first thing you have to do is assign a static IP address to raspberry.
Then I checked with my tools that you suggested and the result was negative (I am attaching the pictures).
At this point I disabled the firewall on both the router, and also that of the antivirus software. I set up a DMZ on the router to the IP address of raspberry.
I created a virtual server for port 80.
But the outcome is always negative.
I had a doubt, I like internet service providers use NGI,

http://ngi.it/it/connettivita/eolo-wireless/funzionamento/come-funziona/

so I placed the antenna on the balcony, the signal passes a module and then to my router.
Is not that what their form I block my connection?

Tomorrow I try to get the initials of their form and do some research.

ricello's picture

Re: Accessing emoncms from outside LAN

Hello, today I did some research on the form that feeds my external antenna.
This is the sign: Alvarion idu ACPS 101g.
From what I understand the module does not incorporate any firewall, qiundi assume that it is not him that I reaspberry blocks the connection through port 80.

I'm afraid that my internet service provider to make myself the blocks, do you think it is plausible?

Paul Reed's picture

Re: Accessing emoncms from outside LAN

Yes I agree, It may be that your internet provider is blocking port 80.

Try and open port 8080 in your router (port forwarding) same as you did for port 80, and check the 'open port tool'.

If port 8080 is then shown as open, you could then add a port 80 redirect via the no-ip.com manage hosts page, to direct traffic to your public IP via port 8080.

Adding the DMZ is adding another level of complexity, it should work without it.

 

Paul

 

ricello's picture

Re: Accessing emoncms from outside LAN

Today I called my internet service provider and I asked about.
he has confirmed to me that my line was active NAT at this point I did disable.
With the phone line connected to the 3G I did the test of the PING and port 80 and the outcome is positive.
I enclose the results.
I removed the address from the DHCP service on the router card raspberry so as to have an address that never changes.
I fixed the DNS host name.
I tried to visualize my webserver at http: \\ ricello.ddns.net \ 192.168.0.104 \ index.php;
but the result is the following:
The requested URL / 192.168.0.104 / index.php was not found on this server.
apache / 2.2.22 (debian) Server at Port 80 ticello.ddns.net.

ricello's picture

Re: Accessing emoncms from outside LAN

Today I called my internet service provider and he confirmed that my line was active NAT service, which I did disable.
Also I removed the card from the DHCP service raspberry so you always have a fixed IP address.
I checked with an app from your phone to connect through port 80 and the PING test and the result was positive.
I am attaching pictures.
I have reactivated properly service host DNS.
But if I connect through the cellular network at http://ricello.ddns.net/192.168.0.104/index.php I get the following page:
NOT Found
The request URL / 192.168.0.104 / index.php was not found on this server.
apache / 2.2.22 (debian) Server at 149.71.151.101 port 80

Robert Wall's picture

Re: Accessing emoncms from outside LAN

I see a login page when I go to the URL http://ricello.ddns.net/emoncms/

Is that what you want? If yes, your mistake was adding "192.168.0.104" into the URL, which is the address inside your LAN that means nothing to the outside world, and leaving off "/emoncms/" which is the directory where emoncms is normally installed.

ricello's picture

Re: Accessing emoncms from outside LAN

Hello Robert Wall, thanks for the help.
The address I was looking for is http://ricello.ddns.net/indexp.php and now it works.
As you suggested I was wrong in pointing the address of the internal LAN.

Hello
Marcello

boelle's picture

Re: Accessing emoncms from outside LAN

Hi... 

 

i'm trying to do the same...

 

http://80.167.214.72/emoncms/boelle should be my public dashboards but they are all 0...

 

i have set the pi to update my ip towards the dns4e service and should i should be reachable at  energymonitor-dk.dns4e.net

 

but this does not work even thou i have set port forward right in the router.... 

 

but if i access by local ip its the same as public ip... everything is 0

 

if i login it shows the right data...

 

where should i start?

boelle's picture

Re: Accessing emoncms from outside LAN

i tried to login from public ip and click edit and save... still all 0

boelle's picture

Re: Accessing emoncms from outside LAN

sorted the dahsboard issue...

 

now i just cant access when i use domain name...

 

hmm

boelle's picture

Re: Accessing emoncms from outside LAN

dns records show that my domain name is up to speed with my ip

 

router has port forward set to port 80...

 

 

Paul Reed's picture

Re: Accessing emoncms from outside LAN

Try accessing your domain from OUTSIDE of Localhost, i.e. using GSM on a phone or get someone else to check.

If it can then be accessed, it could be a 'NAT Loopback' issue with your router. 

 

Paul

Robert Wall's picture

Re: Accessing emoncms from outside LAN

For what it's worth, I can see a login page at http://energymonitor-dk.dns4e.net/emoncms/

boelle's picture

Re: Accessing emoncms from outside LAN

hmm..

 

i cant get the login... maybe because i'm behind the router in the lan

 

what does http://energymonitor-dk.dns4e.net/emoncms/boelle     result in?

boelle's picture

Re: Accessing emoncms from outside LAN

now i get the page too... ie from http://energymonitor-dk.dns4e.net/emoncms/boelle

 

oh well, i guess its just a slow dns update thing

 

thanks for testing :-D

boelle's picture

Re: Accessing emoncms from outside LAN

side Q.... what would the max watt number on my meter be given that i have 3 phases each with max fuses of 16A for stove etc

 

but also there are 2 strings of 10A on the 2 of the phases

 

edit:

 

16*230=3680

3680*3=11040

10*230=2300

2300*2=4600

4600+11040=   15640 watt's

is that right ?

Robert Wall's picture

Re: Accessing emoncms from outside LAN

"there are 2 strings of 10A on the 2 of the phases"  Reading that as ""there is a 10A feed on each of the 2 of the phases",

yes, your sum is correct. I do it slightly differently:

3 x 16 A + 2 x 10 A = 68 A.

68 A x 230 V = 15.64 kW

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.