Page 1 of 1

Network ports

Posted: Thu Mar 16, 2017 10:49 pm
by vellastefan
I am going to install to raspberry pi with 123solar on the same internet. Does it work? Do i have to change some network ports so both systems works? And if yes can you help me with it please?

Thanks

Re: Network ports

Posted: Fri Mar 17, 2017 6:42 am
by jeanmarc
Your router must open and forward the port 80 toward the Pi.
Do you mean you have several machines running on the same network with http service ?

Re: Network ports

Posted: Fri Mar 17, 2017 7:52 am
by vellastefan
Yes i will be having 2 on same network, with same http service.?

Re: Network ports

Posted: Fri Mar 17, 2017 11:24 am
by jeanmarc
You need to do reverse proxy: It mean that the port 80 must be forwarded to your main webserver, which should also do the reverse proxy job.

Ex for nginx.conf :

Code: Select all

location /metern/ {
    proxy_pass http://192.168.1.7;
    proxy_set_header        Host $host;
    proxy_set_header        X-Real-IP $remote_addr;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~* ^/metern/.*\.php  {
    proxy_pass http://192.168.1.7;
}
1) router fwd :80 to 192.168.1.x (main)
2) 192.168.1.x/ is running local things
3) 192.168.1.x/metern/ Is running meterN on 192.168.1.7 machine.

So, from the outside, http://yourdyndns/metern/ will appear as one server.

Re: Network ports

Posted: Sun Mar 19, 2017 10:42 am
by vellastefan
jeanmarc,

thanks for your guide lines. appreciate.
one other question, is this solar123 only compatible with ABB inverters?

thanks

Re: Network ports

Posted: Sun Mar 19, 2017 11:57 am
by jeanmarc
It's 123Solar and it's compatible with inverters that are able to return values. :geek:

Re: Network ports

Posted: Sun Mar 19, 2017 1:41 pm
by vellastefan
Is there a lost somewere pls?