# Set hostname on WiFly

**URL:** <https://community.sparkfun.com/t/set-hostname-on-wifly/19502>\
**Category:** Wireless & IoT\
**Created:** [February 17, 2011, 3:41am UTC](https://community.sparkfun.com/t/set-hostname-on-wifly/19502 "2011-02-17T03:41:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbender](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@pbender](https://community.sparkfun.com/u/pbender)\
**Post date:** [February 17, 2011, 3:41am UTC](https://community.sparkfun.com/t/set-hostname-on-wifly/19502/1 "2011-02-17T03:41:56Z")

</div>

Hi All,

Does anyone know how to set the hostname on a WiFly?

I just recently got back to a project using my WiFly shield and an Arduino and upgraded to the Alpha-2 release of the library for that.

At work, the DHCP server refuses to issue an address unless a host name is specified in the request. Since one of my goals is to use the WiFly as part of a demonstration for students, I need to make this configuration work before the project can be completed.

The library (and my code) works fine on my home network, so I know this isn’t a basic functionality issue.

(The Alpha 0 release worked on both the network at work and the network at home last Summer. The DHCP server was upgraded during December…).

Thanks,

Paul

---

<div class="post-metadata">

**Author:** ![pbender](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@pbender](https://community.sparkfun.com/u/pbender)\
**Post date:** [February 19, 2011, 5:04am UTC](https://community.sparkfun.com/t/set-hostname-on-wifly/19502/2 "2011-02-19T05:04:04Z")

</div>

Ok, I found out how to do this.

in command mode, you run

“set o d name”

You’re actually setting the device name option.

I may have had to do this because my WiFly was originally sent to me with

firmware version 2.10, which did not have this option.

Paul
