hassio-addons / addon-grocy

Grocy - Home Assistant Community Add-ons
https://addons.community
MIT License
319 stars 60 forks source link

exterior access ? #329

Closed schumi2309 closed 1 year ago

schumi2309 commented 1 year ago

Hello, I installed grocy in my Home assistant and everything works fine. to complete I installed the grocy application on my iphone ios. with the server address http://192.168.0.*:9192 with the api key by checking home assistant the problem is that I don't have access if I'm outside. do i have to change something in the server? How to get access to the outside? Thank you

frenck commented 1 year ago

You can enable external access to the add-on by assigning a port to it in the add-on network settings in Home Assistant.

../Frenck

schumi2309 commented 1 year ago

So how do I access my shopping list from my grocy home assistant on my iphone outside via the grocy app?

I have already assigned port 9192

frenck commented 1 year ago

By using that port?

schumi2309 commented 1 year ago

in the grocy app, I put:

http://192.168.0.12:9192

But it does not work

frenck commented 1 year ago

If you go to Grocy using your normal browser (not the app):

http://192.168.0.12:9192/

Does that work?

schumi2309 commented 1 year ago

no, it doesn't work

frenck commented 1 year ago

could you share a screenshot on how you configured it on your end in Home Assistant in the add-on configuration? I will try to re-produce it with that on my end.

schumi2309 commented 1 year ago

this ?

Capture d’écran 2023-01-06 à 11 34 38

Capture d’écran 2023-01-06 à 11 34 46

frenck commented 1 year ago

I've configured it locally the same as you did above in the screenshots, and I can access Grocy on http://test.local:9192/login from my local network after I restarted the add-on.

In this case, of course, test.local is my instance of HA (which is in your case an IP address as it seems).

I cannot reproduce the issue you are reporting. Is there anything in the logs?

../Frenck

schumi2309 commented 1 year ago

locally, at home on my pc, if I type:

http://192.168.0.12:9192 in my browser, I have access to grocy, but I'm at home, on wifi, so it works. but when i'm outside it doesn't work

frenck commented 1 year ago

but when i'm outside it doesn't work

yeah makes sense, 192.168.0.12 is a local address... which is local... as in not remote. You need to use your public address and make sure you make the port available in that case too.

However, that is not an limitation off the add-on, nor it is in scope for the add-on. This is about configuring your network. I can't help you with that.

../Frenck