Installing SAMBA allowed host?

I wish to install SAMBA to edit my file using an external editor.
I install the add-on OK.

How to I find what “allowed host” to use. My home assistant is installed on a Rasberry Pi and I want to access my file from my computer running Windows

You can either allow your entire network or a specific IP address. I.e., 192.168.0.0/16 or 192.168.1.1.

to clarify what it is… allowed hosts are the ip addresses of the machines that you want to be allowed to connect to your homeassistant samba shares. you can specify specific ip addresses if you want to be really restrictive. or you can specify ip address ranges (like your home network. @CO_4X4 gave a couple examples for how you do these.

You could also use GitHub - hassio-addons/addon-vscode: Studio Code Server - Home Assistant Community Add-ons if you want an easy way to edit your files inside HA.

Got my IP address 10.0.0.xx. Very different than number range that I see in the documentation.
This IP address was found by the application Advanced IP Scanner. I authorised it the the configuration of Samba.
In my file folder under network I can see Home Assistant.
When I try to access it, I get a message
This site can’t be reached

10.0.0.xx refused to connect.

Uhhh, Samba is not a website…

I’m confused now. are you trying to fill in the allowed host still?

or trying to connect now to ha?

When you say 10.0.0.xx you don’t literally mean ‘xx’ right?

can you back up a sec… Maybe post screenshots? I don’t understand what you are describing…

or follow this carefully start to finish

I installed Samba Share (settings / add-one)

Then I add my ip address in the allowed hosts

Going tp file explorer I can see the Home Assistant storage

From file explorer I try to open home assistant disk (double click)

And I get the following message

image

Here is my config to allow Google Chrome to communicate through firewall.

Hoping that these screen shots will help to understand and find a solution for my problem,

regards

allowed hosts are the ip’s that you want to connect from. is your pc. not the ip of home assistant.

assuming your pc and ha are on the same subnet, put 10.0.0.0/24 and see if that changes anything…

To verify they are on the same subnet do ‘ipconfig’ in a cmd window on windows… what does that say?

Use map network drive

afbeelding

then

afbeelding

after finish, enter the username and password that you put in the samba configuration

map network drive can be convenient but navigating through the host can also work… the initial issue is that he has samba rejecting all hosts other than home assistant itself

Here is my Advance IP Scanner finding my Home Assistant on Rasberry Pi

Then the Home Assistant Properties in File Explorer

The Mac Address is the same, but using http://10.0.0.35/8123 the site refuse to connect.

I am using a bookmark “https://homeassistant:8123/lovelace/salon” to access my Home Assistant in Google Chrome

This will not work, you need a : to specify a port, not /
Also if you are trying to access a SMB share you cannot specify http:// since that is another protocol. In windows you access SMB shares with \\ip-address\share, on another OS you can use smb://ip-address/share

this is why i was saying better not to do the map network drive yet. it just adds more places to screw up. navigate to it like you were before through network places.

fix the allowed host first and navigate to it.

follow this, and you’d be done by now:

You could use File Editor or Studio Code Server as suggested by someone in the thread.
For samba share take a look at network if you are using windows. Or run \\your.ip.of.ha\share