[Résolu] Local LAN acces to yunohost is not working

Hi all,

I had some little bugs on devices (laptop) connecting to yunohost in LAN resolved by modifing /etc/hosts
see https://forum.yunohost.org/t/resolu-mise-a-jour-en-erreur/202/6 and https://forum.yunohost.org/t/resolved-agendav-can-t-see-my-agendas/110/10

When I am out from my LAN with my smartphone, I can connect to yunohost app without problem.

As said by @kload in 1, I don’t have to change /etc/hosts on devices, on local area network.
And on my smartphone I can’t change /etc/hosts (without root permission), but I want that my smartphone could connect to yunohost apps when I’am at home and when I’am out.

I think is possible. the question is why is not working for me? Is a network configuration problem ? hairpinning issue?
So internet boxes provided local dns to resolve for example (mycomputer1 192.168.0.1, mycomputer2 192.168.0.2…) but is not the point. as far as my box (freebox) does not have this feature .

What can I do to solve that, please?

THX
Jean

Hello,
I still have the same problem, but I will say it more pragmatically
I can’t connect with my tab in local network 192.168.0.X, whereas with my smartphone using 3G i can connect and it works.
Do you know where the probleme could be?

Thanks
Jean

Bonjour

J’ai toujours le probleme : mais je vais le poser de façon plus concrète.

Je ne peux pas me connecter avec ma tablette chez moi avec 192.168.0.X (adresse local) alors qu’avec mon smartphone en 3G avec mon domaine ça fonctionne.

Savez vous d’ou peut venir le problème ? SVP ?
Merci
Jean

Bonjour Jean,
il y a peut être moyen. C’est de demander à la freebox d’utiliser ton instance yunohost comme serveur dns (qui utilise bind).

http://supertos.free.fr/supertos.php?page=1435

L’idée est de rajouter l’adresse ip de ton serveur yunohost dans la liste des serveur dns a consulter au client du serveur dhcp de la freebox.

Salut @Tarul,

Merci pour ta réponse, je vais regarder et je pense que ça peut résoudre le problème de connection en local avec le nom de domaine.

A+
Jean

Salut @Jean31

Hélas YunoHost comme DNS interne ne fonctionnera pas (bientôt oui, dès qu’on aura migré vers DNSmasq \o/ )

Pour te répondre, encore une fois il va te falloir modifier le /etc/hosts de ta tablette.

En gros, chaque client qui veut se connecter en local à ton serveur doit modifier son /etc/hosts avant d’y accéder.

Salut @kload

merci pour ta reponse, je comprends et j’attend avec impatience DNSmasq :smile:
Sinon en attendant si j’essaye de configurer ma tablette avec l’ip local
https://1921.168.0.100/baikal/cal.php/ ça devrait marcher, non?

Merci
Jean

Non justement, ça ne marchera pas car il te faut accéder à ton serveur via un domaine (ton app est installé sur un “virtualhost” lié à un domaine)

Ha ok tout s’éclaire, merci :smile:

Donc me reste 2 solutions:

  • DNS Local (mon NAS peut faire ça)
  • ou alors rooter mes smartphone et tablette pour modifier /etc/hosts

a+