Network_Sample.exe not building?

I have been using the Network example located at http://unity3d.com/support/resources/example-projects/networking-example

When I build the project to test, I always get the same “Network_Sample.exe” like it never builds it. Is there something I am overlooking?

For example, when I run the example from the editor, I can see in the console screen that it says "Attempting to connect to master server at " and gives an IP. Obviously I’m trying to change that to point to my own machine server. But for whatever reason, it doesn’t seem to be buiding the exe.

Any thoughts?

Delete that exe and rebuild. You could be building to a different location and not realizing it (I’ve done it before).

Nope.

I even choose a different directory and no matter what I do, it is still called “Network_Sample.exe” Date 3/17/2009 at 10:22AM Size 4,199 KB

The exe will always be the same

building builds the scripts to assemblies which then are used and builds the assets.
It won’t modify the exe.

Yes, I just found the link to the source code for the master server. I’m going to give that a try first.

Thanks for the reply!

don’t see how this is related

the master server is only used for matchmaking setup and NAT passthrough and is meant to run on a system thats correctly setup portforward wise etc.

likely not of interest to you as the majority of routers is not able to connect to itself.
also UTs masterserver is online 24/7 and is granted to work.
You might not want to use it for your final game but for the prealpha and alpha stage at very least it will do its work more than well :slight_smile:

Thanks.

What I need to create is a Web Player game, that connects to a MasterServer who then in turns calls routines to talk to a SQL Server (because it’s not really a good idea to for Web Player to connect directly to the Database.

I am curious that when Unity 2.5 came out for windows, I was able to load the Network Example and I was also to have 2 local computers play the examples. Ever since then, I have never got to experience that again.

So I figured that I would compile my own Master Server and try my luck that way.

Also, since the application is a Web Player hosted on a Web Server, it should be easy to communicate with the same machine it is on. (hopefully)

the web player is executed on the local machine as any plugin, not on the webserver

so its still an internet connection in between the webplayer and whatever you might want to access from the webserver

the non-connection possibility sounds like your firewall and/or router is interfering.
in that case local lan ips might not be mentioned which results in your local lan machines no longer beeing able to connect as the internet ip can not be used for connection within the local lan by many routers

You are absolutely correct. The Web Player is downloaded to the client’s machine and rendered in the web browser using the Unity Plugin.

I know I need to have a server listening on a server (in this case, my web server) for the now local copy of the Web Player packets.

My issue stems that I cannot create a server to listen on the Web Server. I cannot even get it to listen locally (having a server listen to a Web Player client running on the same machine and same IP without a firewall).

Any help or links to help topics would be wonderful.

Thanks in advance.

did you alter the IP for the master server before initializing it?
by default it points to UTs

Also if you are on vista, ensure to connect to 127.0.0.1, not localhost

Yes I have.

As as a tip to other people using Vista, you should turn off IPv6 and change your host file to remove the “:0”

I will still continue to fight with it.