Hello All,
Im starting out with SmartfoxServer2x and going through the tutorials in the Client > Unity > Example > SFS2X-Trisgame.
When I do a build and run as a standalone everything works fine (Im guessing because its local) but when I do a web build there is no connection and it wont work.
So I tried uploading the Html file to my host server (justhost.com) which did not work either.
1) do I have to upload anything to the host server(justhost) to get the web build to work?
2) Do I have to get a Host number (for example 269.0.2.1) and Port number (9939) from my service provider (justhost) in order for the web build (unity) to run on the website?
3) Am I thinking about this all wrong? Can someone please explain the steps that I should take to get this working on my host server.
Any information would be greatly appreciated!
Sincerely,
Michael
Web Version Question
you may want to read up on server/client connections to get the general idea behind it.
the server needs to be accessible from all the clients so it needs to be on a public ip address. If it's not on a public ip it needs to be port forwarded and routed to the internal ip address of the server on your LAN.
On that server you will need to have the SFS2x software running and open up port 9339.
Once you have this working, you will need to build a client ( standalone or web ) with the ip address of the server. Or enter it manualy before connecting. Also when connecting remotely through the webplayer you will need to have security policy validation enabled.
There is more info on this in one of the stickies i think.
the server needs to be accessible from all the clients so it needs to be on a public ip address. If it's not on a public ip it needs to be port forwarded and routed to the internal ip address of the server on your LAN.
On that server you will need to have the SFS2x software running and open up port 9339.
Once you have this working, you will need to build a client ( standalone or web ) with the ip address of the server. Or enter it manualy before connecting. Also when connecting remotely through the webplayer you will need to have security policy validation enabled.
There is more info on this in one of the stickies i think.
Would you happen to have a link to the server/client connections that I can read up on?
Thanks for the reply greatly appreciated the one thing Im unclear of is what to upload to my server?
Im going to be uploading to public_html Im just not sure which folders to upload?
Inside of the web player game itself, it will have the port setting 9339 as well as the IP address (127.839.83.631) of the host where the game will reside (mygame.html and mygame.unity3d)
The files that were downloaded from Smrtfox are:
So should I upload the whole SFS2X-RC1a folder with everything or just the client folder or just the SFS2X folder?
And the last question... should I upload mygame.html & mygame.unity3d files into one of these folders that are uploaded or just have it with these folders.
I know it may seem simple but I havent found any direction or documentation on which folders to upload to the server? Doing it on my machine itself is simple I just double click the SFS2X application and then open up the http://localhost:8080/ link.
I think once I get this part settled I should be good to go and I seriously appreciate any help!
Sincerely,
michael
Thanks for the reply greatly appreciated the one thing Im unclear of is what to upload to my server?
Im going to be uploading to public_html Im just not sure which folders to upload?
Inside of the web player game itself, it will have the port setting 9339 as well as the IP address (127.839.83.631) of the host where the game will reside (mygame.html and mygame.unity3d)
The files that were downloaded from Smrtfox are:
Code: Select all
SFS2X-RC1a >
Client >
Flash >
iPhone >
Unity >
SFSTris2X-Extension-src.zip
SFS2X >
config >
data >
extensions >
lib >
logs >
SFS2X (application)
sfs2x-service
WWW >
zones >
third-party-licenses >
Apache-2.0.text
COPYING.txt
jetty >
jython >
other stuff
And the last question... should I upload mygame.html & mygame.unity3d files into one of these folders that are uploaded or just have it with these folders.
I know it may seem simple but I havent found any direction or documentation on which folders to upload to the server? Doing it on my machine itself is simple I just double click the SFS2X application and then open up the http://localhost:8080/ link.
I think once I get this part settled I should be good to go and I seriously appreciate any help!
Sincerely,
michael
How do I install the SFS2x on a remote server?
Since I've already uploaded all of the folders to the server I'm guessing I'll have to run the application (SFS2x) from inside the folders on the remote server, I'll try this when I get home and I'll also google as much as my brain can take, because it's tough to get an answer.
It's probably so simple and if/when I figure it out I'll make a simple video for others like myself who need to see this missing step
Since I've already uploaded all of the folders to the server I'm guessing I'll have to run the application (SFS2x) from inside the folders on the remote server, I'll try this when I get home and I'll also google as much as my brain can take, because it's tough to get an answer.
It's probably so simple and if/when I figure it out I'll make a simple video for others like myself who need to see this missing step
Networking can be complex and looking at your questions, you will need to start with the basics. Client/server basicly means that a server software runs on a machine which is accessible from the net. All client softwares ( like the Unity webplayer or standalone ) can connect to it to get game data.project wrote:It's probably so simple
By no means you will be able to run/install the software through ftp.
You will need to have remote access with admin privileges to install and configure the software.
-
ThomasLund
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
The very best thing to do is to read here:
http://docs2x.smartfoxserver.com/
There is lots of info here and in the getting started part it also tells you how to install etc.etc.!
Network games (no matter if its SFS or anything else) is a steep learning curve for anyone. So hang in there and good luck.
/Thomas
http://docs2x.smartfoxserver.com/
There is lots of info here and in the getting started part it also tells you how to install etc.etc.!
Network games (no matter if its SFS or anything else) is a steep learning curve for anyone. So hang in there and good luck.
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund