View Full Version : Setting up ES
Harro
05-04-2004, 12:19 AM
Hi everyone,
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:
peterblaze
05-04-2004, 02:46 AM
Hi Harro,
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
and:
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:
http://www.macromedia.com/devnet/mx/flash/articles/fplayer_security.html
http://www.macromedia.com/devnet/mx/flash/articles/fplayer_security_03.html
http://moock.org/asdg/technotes/crossDomainPolicyFiles/
BTW
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,
hth,
peter
webgeek
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!
mvpdating
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?
Thanks :smhair:
peterblaze
05-18-2004, 12:16 AM
Hi mvpdating,
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,
So,
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:
<ChatServer>
<IP>127.0.0.1</IP>
<Port>9875</Port>
Change IP node to Your current remote IP, save changes.
Restart ElectroServer,
Important: make a copy of conf .xml files before any editing,
BTW:
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,
hth,
peter
mvpdating
05-18-2004, 12:29 AM
Thanks so much for replying.
I already changed the configuration file to point to my local ip address(192.16.2.39). 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
:roll:
peterblaze
05-18-2004, 12:51 AM
Hi mvpdating,
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?
hth,
peter
jobem
05-18-2004, 02:11 AM
Hi mvpdating,
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 192.16.2.39, then the SWF must be loaded from 192.16.2.39. 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!
mvpdating
05-18-2004, 02:25 AM
where would i find the timer settings?
mvpdating
05-18-2004, 02:34 AM
Well, how would you "trick" it ?
:jumpin:
Powered by vBulletin® Version 4.1.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.