# .ServerName is deprecated

**URL:** <https://discuss.hangfire.io/t/servername-is-deprecated/1429>\
**Category:** question\
**Created:** [October 15, 2015, 1:55pm UTC](https://discuss.hangfire.io/t/servername-is-deprecated/1429 "2015-10-15T13:55:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilodeau](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bilodeau](https://discuss.hangfire.io/u/bilodeau)\
**Post date:** [October 15, 2015, 1:55pm UTC](https://discuss.hangfire.io/t/servername-is-deprecated/1429/1 "2015-10-15T13:55:58Z")

</div>

I just upgraded to 1.5 and noticed that the ServerName property of BackgroundJobServerOptions is deprecated. I was using this property to specify the machine that I want the Hangfire servers to run on. Before that we would get production jobs running on server instances on our development and test machines (not good).

How can I specify the machine that I want Hangfire server instances created on?

---

<div class="post-metadata">

**Author:** ![Atreyu](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/atreyu/32/80_2.png) [@Atreyu](https://discuss.hangfire.io/u/Atreyu)\
**Post date:** [March 24, 2016, 9:51am UTC](https://discuss.hangfire.io/t/servername-is-deprecated/1429/2 "2016-03-24T09:51:34Z")

</div>

A bit late reply, but for posterity’s sake:

I’ve solved this by making a machine-specific queue, like:

 ![](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/1X/bbc633dc59971fe8a0b0deaaaf6f46517ff418c2.png)

This can be initiated somehwat like this.

```
var options = new BackgroundJobServerOptions
{
    Queues = new[] { System.Environment.MachineName }
};
   			
new BackgroundJobServer(options, ... );

```

You can assign your job to run at a specifc queue using HangFires’ `new EnqueuedState([QUEUENAMEHERE])`
