2 answers

In Eclipse, you can create a new Force.com project, select *Environment to Other (Specify) and type the hostname (see the *Hostname input in the screenshot below) to whatever domain you have. However, I would think using test.salesforce.com should work as well.