I'm having trouble connecting to APE over a LAN without DNS.

I am running Ubuntu 11.04 (named adiemus) inside VirtualBox on a
Windows XP system.  Its IP address is set to 192.168.0.2 using a
Bridged network connection.  I can SSH and HTTP to the Ubuntu system
from another Windows XP host (fortesque, 192.168.0.73) just fine.

Installed Ubuntu packages for libmysql, Apache 2, git, gcc, make, etc.

I compiled APE_Server at git rev
7368a9c67908b8f1af6be774e43438b17b149428 and cloned APE_JSF at git rev
a51d51ef6b24e3597b523313834fe969a815582a into /var/www/.

I installed aped into /opt/APE_SERVER/bin/.  Also in that directory, I
have ape.conf:
----------------------------------------------------------------------
Server {
        port = 6969               # The port of APE - Here 80 with the
use of a dedicated IP for the APE Server.
        daemon = no             # if "yes", launches APE in background
        ip_listen = 192.168.0.2
        domain = ape-test.local
        rlimit_nofile = 10000
}
----------------------------------------------------------------------

I run the aped server as root using sudo.

/etc/hosts on the Ubuntu system is as follows:
----------------------------------------------------------------------
127.0.0.1       localhost
127.0.1.1       adiemus

192.168.0.2     adiemus.hoh.geek
192.168.0.2     ape-test.local
192.168.0.2     ape.ape-test.local
192.168.0.2     0.ape.ape-test.local
192.168.0.2     1.ape.ape-test.local
192.168.0.2     2.ape.ape-test.local
192.168.0.2     3.ape.ape-test.local
192.168.0.2     4.ape.ape-test.local
192.168.0.2     5.ape.ape-test.local
192.168.0.2     6.ape.ape-test.local
192.168.0.2     7.ape.ape-test.local
192.168.0.2     8.ape.ape-test.local
192.168.0.2     9.ape.ape-test.local


# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
----------------------------------------------------------------------

I modified /var/www/APE_JSF/Demos/config.js on the Ubuntu system to
have the following values:
----------------------------------------------------------------------
APE.Config.baseUrl = 'http://ape-test.local/APE_JSF'; //APE JSF
APE.Config.domain = 'ape-test.local';
APE.Config.server = 'ape.ape-test.local:6969'; //APE server URL
----------------------------------------------------------------------


On my browser-client system, fortesque, I have the following hosts
file in c:/WINDOWS/system32/drivers/etc/:
----------------------------------------------------------------------
127.0.0.1       localhost

192.168.0.2     adiemus
192.168.0.2     adiemus.hoh.geek
192.168.0.2     ape-test.local
192.168.0.2     ape.ape-test.local
192.168.0.2     0.ape.ape-test.local
192.168.0.2     1.ape.ape-test.local
192.168.0.2     2.ape.ape-test.local
192.168.0.2     3.ape.ape-test.local
192.168.0.2     4.ape.ape-test.local
192.168.0.2     5.ape.ape-test.local
192.168.0.2     6.ape.ape-test.local
192.168.0.2     7.ape.ape-test.local
192.168.0.2     8.ape.ape-test.local
192.168.0.2     9.ape.ape-test.local

192.168.0.73    fortesque fortesque.hoh.geek
----------------------------------------------------------------------

I pointed fortesque's Firefox browser to 
http://ape-test.local/APE_JSF/Tools/Check/
and got the Launch Test button. After clicking it, I get the following
debug output:

----------------------------------------------------------------------
Running test : Init
Running test : Loading Client
Running test : Loading config
Config values are :

identifier : ape
init : true
frequency : 0
scripts :
http://ape-test.local/APE_JSF/Source/mootools-core.js,http://ape-test.local/APE_JSF/Source/Core/APE.js,http://ape-test.local/APE_JSF/Source/Core/Events.js,http://ape-test.local/APE_JSF/Source/Core/Core.js,http://ape-test.local/APE_JSF/Source/Pipe/Pipe.js,http://ape-test.local/APE_JSF/Source/Pipe/PipeProxy.js,http://ape-test.local/APE_JSF/Source/Pipe/PipeMulti.js,http://ape-test.local/APE_JSF/Source/Pipe/PipeSingle.js,http://ape-test.local/APE_JSF/Source/Request/Request.js,http://ape-test.local/APE_JSF/Source/Request/Request.Stack.js,http://ape-test.local/APE_JSF/Source/Request/Request.CycledStack.js,http://ape-test.local/APE_JSF/Source/Transport/Transport.longPolling.js,http://ape-test.local/APE_JSF/Source/Transport/Transport.SSE.js,http://ape-test.local/APE_JSF/Source/Transport/Transport.XHRStreaming.js,http://ape-test.local/APE_JSF/Source/Transport/Transport.JSONP.js,http://ape-test.local/APE_JSF/Source/Transport/Transport.WebSocket.js,http://ape-test.local/APE_JSF/Source/Core/Utility.js,http://ape-test.local/APE_JSF/Source/Core/JSON.js
baseUrl : http://ape-test.local/APE_JSF
domain : ape-test.local
server : ape.ape-test.local:6969

Running test : Setting document.domain
Running test : Checking APE.Config.baseUrl
APE JSF Version 1.0
Running test : Contacting APE Server
Can't contact APE Server. Please check the your APE Server is running
and the folowing url is pointing to your APE server : 
http://ape.ape-test.local:6969
Something went wrong. If you can't fix it by yourself post a message
on the newsgroups with the output below or join our IRC channel
----------------------------------------------------------------------

If I click on that last link, it says
----------------------------------------------------------------------
APE Server
No command given.
http://www.ape-project.org/ - Server 1.1.2-dev (Build Sep 12 2011
19:26:54)
----------------------------------------------------------------------

I've tried setting the domain in both files to auto, and I've tried
listening to * instead of 192.168.0.2 on the Ubuntu system's ape.conf,
but neither helps.

Can someone help me?


Lexcelsior

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to