dimeRocker Unity MasterServer Now Online!

For those Unity devs who need an alternative solution to the Unity Technologies hosted servers, dimeRocker is pleased to offer dRock Servers: a Unity MasterServer, NAT Facilitator and Connection Tester conveniently located in North America.

While you’re at it, sign-up so we can keep you posted on all the Unity APIs we are developing specifically to allow web devs like to deploy, enrich, recoup and manage Unity content across the web - all from one centralized source!
Sign-up: http://dimerocker.com/devsignup/

dRock Server Deets:

port: 12345

port: 50000

port: 10735

The IPs for these servers may change, but the subdomains will always point where you need to go. You will need to resolve the URLs to IPs to connect from within your Unity game. Here’s snippets to do that.

Javascript:

var masterServerUrl = "masterserver.dimerocker.com";
var ip = System.Net.Dns.GetHostEntry (masterServerUrl);
var ipA = ip.AddressList;

if (ipA.Length > 0)
{
  MasterServer.ipAddress = ipA[0].ToString();
  MasterServer.port = masterServerPort;
}

C#:

using System.Net;

string masterServerUrl = "masterserver.dimerocker.com";
IPHostEntry ip = Dns.GetHostEntry (masterServerUrl);
IPAddress[] ipA = ip.AddressList;

if (ipA.Length > 0)
{
  MasterServer.ipAddress = ipA[0].ToString();
  MasterServer.port = masterServerPort;
}

EDIT:

As Leepo from wooglie.com points out, using the .Net System assembly can result in ~800K being added to your game, so this may not be an ideal solution for web games.

As an alternative, you can use a getip.php script on our server, which will resolve an url for you.

You’ll want to do it as a Coroutine, and before you make any network connection tests or poll the master server.

For example:

C#:

StartCoroutine(GetServerIPs());

while (!gotIPs)
    yield return new WaitForSeconds(0.1f);

...

IEnumerator GetServerIPs()
{
    // masterserver
    WWW www = new WWW("http://www.dimerocker.com/api/getip.php?url=masterserver.dimerocker.com");

    while (![url]www.isDone[/url])
        yield return new WaitForSeconds(0.1f);

    string masterServerIP = [url]www.data;[/url]

    // nat facilitator
    www = new WWW("http://www.dimerocker.com/api/getip.php?url=facilitator.dimerocker.com");

    while (![url]www.isDone[/url])
        yield return new WaitForSeconds(0.1f);

    string natFacilitatorIP = [url]www.data;[/url]

    // connection tester
    www = new WWW("http://www.dimerocker.com/api/getip.php?url=connectiontester.dimerocker.com");

    while (![url]www.isDone[/url])
        yield return new WaitForSeconds(0.1f);

    string connectionTesterIP = [url]www.data;[/url]

    gotIPs = true;

    yield break;
}

\m/on Leepo!

For more info:

Those in Vancouver immediately after Casual Connect join us for the launch of www.unityusersgroup.com. (going live July 24th)
For more info on event workshop: Eventbrite - Discover the Best Local Events & Things to Do
…or simply scroll down in Unity Gossip.
Hope to see you all there!

Is this your namesake?

183716--6517--$dimebag_144.jpg

Jessy,

Although the late great Dimebag Darryl possesses many of the down-for-whatever sensibilities of the dRock staff, dimeRocker was actually derived from the underground expression “Rockin’ on your dime”.

This drinking-on-your-tab attitude stems from the free-to-play nature of the platform, while also foreshadowing the use of microtransactions.

Raise a glass to Unity and ride the lighting to independence, dimeRocker is afoot.

Consider yourself warned…:twisted:

J.Joly

Cool stuff J.

Forum tip: use the Code button or manually wrap code in code blocks ([ code ]…[ /code ], without the spaces) for better formatting. I’m gonna edit your post as an example.

Rock on!

Rev,

Good advice. Will remember that one.
Looking forward to conference is San Fran.
Will be bringing my drinking shoes.

Cheers,
J.Joly

Great stuff JJ. Been lurking all your posts. Cool initiative(s). Keep posting so we can get our heads around how we fit into it. Speaking for myself I get it but I’m still unsure where it’s all going to end up. It’s still kind of new at this stage if that makes sense.

And yeah, if you get to Chicago, my dime baby! Or I’ll come out there sometime and rock on yours (and Higgy’s comin or bust)! :smile:

Pete,

Have a soft spot for ChiTown.
Lived across the lake in the Windy City’s sister city before moving out West where the wind blows tall.

Much of my misspent youth was spent listening to Touch&Go, Thrill Jockey, Drag City, etc.

Got my Jesus Lizard tickets in my wallet right now…

Careful… I just might take you up on your offer.

The UUG could use a Chicago Chapter - what do you say you sign up at UnityUsersGroup.com and whip those Hogtown devs into shape.

dimeRocker prototype on track for the end of the month.
Have some dope API for Unity devs only.

Thanks for the support - dRock wants your input.
J.Joly

Bears season starts Saturday! :evil: Come on by!

Actually think I’m up for it. Catch you tomorrow on this.

Pete,

Would love to see Bears at Bills - unfortunately dRock won’t let me out of her site until she’s launched…

Let’s hook it up in San Fran at Unite - going?

Just set up Chicago Chapter (local 008) on UUG.
Have made you a moderator - good on you for taking up the torch.

Go Bearz,
J.Joly

Well it’s just preseason. She’ll be launched by regular season! Don’t think I’m going to make Unite. Drop you a line if it changes. Cool on the local 008. Now where’d I put that damn torch? :smile:

Hello dimeRocker

We take your offer. Thank you.

Connectivity has not been tested yet, but if it works we will use it for our coming racing game.

And if the game does well and generates considerable traffic, we can either rent the service from you, or move to our own server.

Thanks again.

One question…

Do we need to update the NAT Facilitator and Connection Tester IPs and Ports internally, or do they update automatically with the MasterServer.ipAddress change?

Apologies about delay on this post… Have been on the road the last week and delinquent in my updates.

The Masterserver code snippet only shows how to retrieve the IP for the master server. In your code, you should also retrieve the IPs for the connection tester and the NAT facilitator as well.

Please use to your hearts content.
Soon we will launch our dimeRocker self-publishing platform that will to allow you enrich your game with turn-key dRock API and deploy it across the social web from one centralized management platform.

Will be demoing prototype at Unite in San Fran. Hope to see you there.

Cheers,
J.Joly

Thanks. Don’t worry about the late reply. By any chance do you know the code to retrieve and set the connection tester and the NAT facilitator?

I will see you in San Francisco.

Please see the post at http://www.overinteractive.com/2009/06/dimerocker-unity-masterserver-now-online/ for updated instructions.

Let me know if you have any more problems.

Thank you again!

hi!

i tried contacting you by email and on that webpage you mentioned, but after a week without answer i guess my messages didnt went true…

i built a javascript version of the code that asks your getip api for info, but it wont return anything good.

in fact, that address appears as page not found.

is this active or the only way to have acces to your master server and facilitator is by becoming a beta developer?

it seems that i cannot get access to the official facilitator, either its down or i have an outdated address on unity and i dont understand to which i should change it to…

Sorry about the lack of response, i got an answer for you and forgot to send it :frowning: Ive emailed you it now.

and no you don’t have to be part of the beta to use the server.

Mike

we finally got in touch and the corrections you sent me worked just fine!

there was a minor typo but… XD

feel confident on publishing that, it works.

What is the solution?

I have same problem too.