View Full Version : Setting up ES
05-04-2004, 12:19 AM
I was just wondering, could I run the ES server on my home computer, but upload the game to my web host(lycos), and if this would work, what files would i need to upload to the host?
Thanks for any help :tongue:
05-04-2004, 02:46 AM
This may work like that:
1) ES must be running on Your local machine and You have to know local machine's current remote IP
2) Your .swf files for games must be uploaded on remote machine
3) You must upload to remote server security policy file in .xml format becouse of cross-domain security issue in Flash Player,
more on security on this forum in post by Michael Grundvig (http://www.electro-server.com/forum/profile.aspx?f=2&m=21&p=4)
(take a look http://www.electro-server.com/forum/?f=2&m=21) and in posted links:
I think it's nearly impossible to fully check ES or similiar socket-server features in scenario described here and in Your post. The best way is run Your files on local machine working as 'locahost' and then upload Your files to remote host where instance of ES is running,
05-04-2004, 04:02 AM
As peter has said, it's certainly possible to run the server that way. The default setting for ElectroServer has your policy file establised as wide open. This means that you should be able to connect to the server from a remote website as long as you are using a new Flash player that supports it. By default, you don't need to upload a custom policy file.
As for running the server locally to develop; all of Electrotanks multiplkayer games have been developed by running a copy of both the game and the server locally. Once we get beyond that, we generally upload both the games and the server to a remote machine for testing. We HAVE run the server on my machine with the games running locally before, but thats usually more of a hassle then it's worth due to the firewall rules involved, etc.
Please let me know if you have any other questions. Thanks!
05-17-2004, 11:27 PM
I've installed the latest flash player (7,0,19,0),changed the code to point to my local ip address, loaded my swf file to my webserver (mvpdating.com/multiplayer/game.swf), started es locally.
When I connect to my website and run the swf, the ES copyright info comes up, then it hangs on "connecting"
I've been able to test locally fine by loading 2 local copies of the swf file and by running es locally.
I know long term, i will need to find a host that will allow es to be installed, but short term it sounds like you can at least test it in this manner. In the previous response, you said you've ran es on a local server and tested it through the internet, but it was difficutlt because of the firewall.
What other steps can i take to get that point?
05-18-2004, 12:16 AM
I think Mike or Jobe may "kill" me for such advices (OK, just kidding), but I know how You feel about Your problem with sharing Your work with other people,
Stop ElectroServer first,
Take a look at Your ES instalation folder and find: "configuration.xml". Open that file in Your text editor and find lines:
Change IP node to Your current remote IP, save changes.
Important: make a copy of conf .xml files before any editing,
Remember that even You run Your files on home machine always put ES logo splash screen or visible notice somewhere at the beggining of movie,
05-18-2004, 12:29 AM
Thanks so much for replying.
I already changed the configuration file to point to my local ip address(126.96.36.199). When you run the swf file from the website(www.mvpdating.com/multiplayer/game.swf), it even shows that it is trying to connect to the correct ip address. I can also see that the local server console is pointing to the correct ip address.
So what next??
ps. feel free to try and connect to the game
05-18-2004, 12:51 AM
I think (and maybe I'm wrong) Your current problem is in slow net connection between two different hosts, could You change timer settings in Your .swf to see difference?
05-18-2004, 02:11 AM
Without any tricks (you can use tricks to get it to work differently) these are the simple rules to connecting a SWF to ES:
- ES must be assigned a port and IP
- The SWF file must be configured to connect to that same IP and port
**This is the important one that you're missing
- The SWF *must* be loaded from the exact IP address that ES is running on
So if you want a SWF to connect to 188.8.131.52, then the SWF must be loaded from 184.108.40.206. You cannot load a SWF from a remote server and have it connect to a local instance of ElectroServer. Well....you could but not be specifying a local IP, you'd have to hit your own network's external IP.
The easiest thing to do if you are having trouble is to get flashtampa.com or webgamehost.com to host your server for you. They'll set it up and you can just connect.
We are happy to help further though, just ask!
05-18-2004, 02:25 AM
where would i find the timer settings?
05-18-2004, 02:34 AM
Well, how would you "trick" it ?
Powered by vBulletin® Version 4.1.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.