PDA

View Full Version : getting es working on my server



ronald
09-14-2004, 03:59 AM
Just followed the instructions on this forum to
untar the es 3 file in the root of my domain name on the web server I am using. Everything worked and I was able to start es through terminal using ./StartElectroServer . It loaded everything. I changed the config.xml file to read false under webserver and changed the ip to www.myaddress.com. I also changed the chatserver ip to the same. When I try to run an example file from my domain it does not connect to es. I do not have much experience with servers so I wondering if I have left something out or have to change permissions on the es files or if the electro server has to be in a particular directory like /www on my site for other files to connect.

thanks
r

jobem
09-14-2004, 04:11 AM
Hi Ron,

Try this:
1) Change the IP address in the config to your real IP address.
2) Make sure the example files try on that IP address, upload them.
3) Launch the examples by pathing to your IP (e.g http://987.654.3.2.1/Examples/Chat.html)

If you can get that to work then we can start tweaking other things to get it working properly on your regular domain name.

ronald
09-14-2004, 07:07 AM
hi Jobe

I followed the instructions using the ip. Now instead of saying Unable to connect, the connecting message just displays but does not continue. I also then tried to connect with the domain name and its also holding on connecting... When I try to re connect to the server in terminal it says the server could already be running and It cannot connect. Is there a command in terminal to stop the server in order to restart it?

thanks
r

jobem
09-14-2004, 08:20 AM
Hi Ron,

Try putting an example file on your own hard drive and connecting to the IP and Port that the server is running on. That should 100% definately work since there are no security restrictions. That will verify that you at least have the server running properly.

Let me know how that works. Then we can move on from there.

ps. Don't feel bad. These Flash player security issues are the hangnail of the Flash world. Everyone runs into these issues.

ronald
09-14-2004, 09:59 AM
hi Jobe

I tried to connect from my hard drive but it still just read "connecting..."
I had deleted the files on my server earlier and then reinstalled them. When I went to restart electroserver after the reinstall it seemed that it was still running? It gave me the message below after the chatserver initialization.

thanks for you time


java.net.SocketException: Address already in use
sun.nio.ch.Net.bind(Native Method)
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSock etChannelImpl.java:86)
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAd aptor.java:60)
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAd aptor.java:52)
org.ronsoft.protoplex.nioimpl.server.NioServer.lis ten(NioServer.java:308)
com.electrotank.electroserver.ChatProtocol.startSe rver(ChatProtocol.java:322)
com.electrotank.electroserver.ElectroServer.startS erver(ElectroServer.java:173)
com.electrotank.electroserver.ElectroServer.main(E lectroServer.java:271)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
com.install4j.runtime.LauncherEngine.launch(Unknow n Source)
com.install4j.runtime.Launcher.main(Unknown Source)
2004/09/14 04:46:50.986 SEVERE [10] (ChatProtocol.startServer): Unable to listen on any of the addresses, is the server already running?
Could not start server thread, exiting

daveganley
09-14-2004, 12:39 PM
More details would be useful, version of flash, local machine i.e mac OSX 10.3,
dedicated server or shared hosting on what type of server windows/unix and the control panel used.

PM me your IP and port number and I'll try connecting and let you know the results

Dave

jobem
09-14-2004, 06:19 PM
Hi Ron,

The fact that you could not connect to the server from your hard drive (which by-passes all Flash player security restrictions) means that ElectroServer probably is not running or not running properly. You could send me your IP and Port over email, or post them here, and I can verify that for you.

ronald
09-14-2004, 09:46 PM
hi jobe

I 've sent you an email

thanks

r