Thach Nguyen - 2006-08-14

I was able communications between two machines on the same subnet using these tasks. When machines are on different subnets, they simple would not work. I got:
java.net.ConnectException: Connection timed out: connect
        at net.sf.antcontrib.antserver.client.ClientTask.execute(ClientTask.java
:196)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at net.sf.antcontrib.logic.Assert.executeNestedTasks(Assert.java:287)
        at net.sf.antcontrib.logic.Assert.execute(Assert.java:187)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at java.net.Socket.<init>(Socket.java:309)
        at java.net.Socket.<init>(Socket.java:124)
        at net.sf.antcontrib.antserver.client.Client.connect(Client.java:72)
        at net.sf.antcontrib.antserver.client.ClientTask.execute(ClientTask.java
:134)
        ... 14 more

Anyone have success when machines are on diff subnets? Thanks.