Hostname (standard PC-192-168-xxx-xxx)

Blackfarmer
Posts: 7
Joined: Tue May 19, 2015 3:43 am

Hostname (standard PC-192-168-xxx-xxx)

Postby Blackfarmer » Sun May 31, 2015 7:20 pm

Hello,

I'm using the SDK of ESP822. Currently the device is registered in my network with the name 'PC-aaa-bbb-ccc-ddd', where aaa, bbb, ccc, ddd is the IP address. I would like to change this name into a myself generated name. How can I do this?

Thanks!
Blackfarmer

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby ESP_Faye » Tue Jun 09, 2015 2:01 pm

Hi,

Thanks for your interest in ESP8266 !

Sorry that we don‘t have the API to set hostname right now.

But this is a valuable advice,we will work on it !

joostn
Posts: 19
Joined: Thu Jan 22, 2015 5:00 pm

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby joostn » Tue Jun 09, 2015 6:54 pm

Agreed, this would be my #1 request. An IOT device should be accessible via a configurable host name, so I can configure my connected refrigerator via http://fridge.local/

I'm currently solving this by using my own LWIP but this is a pain to maintain between SDK upgrades.

Blackfarmer
Posts: 7
Joined: Tue May 19, 2015 3:43 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby Blackfarmer » Sun Jun 14, 2015 3:56 am

Hello espressif team,

you solved my request with SDK 1.1.2 (wifi_station_set_hostname(hostname)).

I'm impressed how fast you react to user requests! Great job - Thanks!

Best regards
Blackfarmer

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby blubb » Mon Jun 22, 2015 5:41 am

Hi, it seems that setting the hostname alone is not enough for Windows hosts.

I can see the hostname on my router's info page. I can ping the module from a linux client.

I cannot ping the module from a windows client!

However, Windows' nslookup command shows me the module's ip.

So something is still missing.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby ESP_Faye » Mon Jun 29, 2015 5:24 pm

Hi,

Could your windows client ping other host ?

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby blubb » Mon Jun 29, 2015 5:30 pm

Hi, yes. It can ping my ubuntu machine. If I remember correctly I had to install Samba on the ubuntu machine to achieve this. But I do not know what Samba does to make this possible.

tve
Posts: 123
Joined: Sun Feb 15, 2015 4:33 pm

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby tve » Tue Jun 30, 2015 10:49 am

This is a problem wit windows. I'm had some people report success by ensuring that their router has a local domain set to "local". Others had to make sure that the TCP properties on windows are set to add the .local suffix ...

blubb
Posts: 116
Joined: Mon Jun 22, 2015 5:35 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby blubb » Tue Jun 30, 2015 5:17 pm

Nope, I can ping my Ubuntu machine by its name without "local" or whatever. Just the hostname. There is definitely still something missing in the sdk.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Hostname (standard PC-192-168-xxx-xxx)

Postby ESP_Faye » Wed Jul 01, 2015 9:59 am

Hi,

Yes,windows client can not ping ESP8266 by hostname.

Because ESP8266 does not support protocol “NBNS” .

Please ping it through IP.

So sorry for the inconvenience.

Who is online

Users browsing this forum: No registered users and 84 guests