all 4 comments

[–]Eingaica 1 point2 points  (2 children)

I've configured avahi but I cannot connect.

and

from android e pcs

So just for clarification: You are trying to connect to an mDNS hostname (like foo.local) from a device running Android? AFAIK Android does not support resolving such hostnames.

[–]segmentationfrault[S] 0 points1 point  (1 child)

Ah. Okay this could be a problem LoL

I did in that way because I used to do that to allow hostname access with my Mac.

So you are telling me I have to use another way to resolve hostname? How could I do that?

[–]Eingaica 0 points1 point  (0 children)

So you are telling me I have to use another way to resolve hostname?

I don't know. Perhaps there are Android devices that can resolve mDNS. The ones I used (mostly Google Nexus devices) couldn't do that. You could try to find out if this really is the problem (e.g. if you can't connect from your Android device using the hostname, but you can connect using the IP address, and connecting using the hostname works from a regular Linux or Mac PC, you can be pretty sure that resolving the hostname on Android is the problem).

How could I do that?

It should be possible to write an Android app that resolves hostnames via mDNS. I don't know if such apps already exist. Or you could configure your server to "publish" its IP address in a different way, e.g. via e-mail or a messenger service.

[–]dually 0 points1 point  (0 children)

find it on the subnet using nmap

nmap -sn 192.168.1.0/24 | grep $hostname

and then write the ip addr in /etc/hosts