You are not logged in.

#1 2016-08-26 07:27:21

Kvirre
Member
Registered: 2016-08-07
Posts: 47

Hostname

Hi,

Many people use DHCP and not static IP.
To have a hostname instad of IP could be usefull.

Please see https://wiki.photonic3d.com/doku.php?id=raspberry_pi

They use http://photonic3d.local:9091 to access webpages instead of IP.

PS.
I know you could use the "could dashboard" ...

Offline

#2 2016-08-26 07:51:31

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Hostname

Above solution only works if you have mac or itunes installed on windows. With very specific network requirements.
Currently we support upnp auto discovery protocol (SSDP), it widely supported on OSes and home appliances.  Only issue with SSDP is you need to visit your home network area to find your printer.
1bad4a1e5e9dabfe4af165316154a0c8.png

Offline

#3 2016-08-26 08:06:00

Kvirre
Member
Registered: 2016-08-07
Posts: 47

Re: Hostname

Hi, im not sure you need Bonjour (if that what you meant with Itunes stuff).

- I suggest that you should be able to reach the pi through a specific host-name, not to discover a broadcast.

Will try something like this once I come back home
http://raspberrywebserver.com/serveradm … -name.html

Regards

Offline

#4 2016-08-26 08:41:11

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Hostname

Things a bit more complex to resolve these custom hostnames.

You need full fledged dns server such as bind to handle things perfectly.

mDNS (bonjour) is newer standard If your local dns server is your modem (gateway) and it could map ip to hostnames listening mdns broadcasting then things will works perfectly. But if you set your dns server to something else  external such as google's 8.8.8.8, it would not work.

If you have any program supports mDNS installed on your OS, still it will solve hostnames to ip.
At the end mDNS is not well supported and it highly likely user could not find the device using hostname.

Link you have posted above, would not work for DHCP. And you need to edit this file on your pc and not rpi.

Offline

#5 2016-08-26 08:45:50

Kvirre
Member
Registered: 2016-08-07
Posts: 47

Re: Hostname

What about a samba-server, should work against any OS?

Offline

#6 2016-08-26 09:12:04

Shahin
Administrator
Registered: 2016-02-17
Posts: 1,834

Re: Hostname

Samba implement SMB protocol for sharing files and resources. As I know it does not include any hostname <-> IP lookup capability.

Offline

#7 2016-08-26 09:31:00

Kvirre
Member
Registered: 2016-08-07
Posts: 47

Re: Hostname

Ah ok, sorry I thought it did.

I'm out of suggestions smile

Offline

Board footer

Powered by FluxBB