I implemented a simple TCP Echo server in java. It works fine if I launch it from the command line.
But it doesn't work if I launch it from ant. I tried both 'java' and 'exec' tasks. The process is started correctly but the clients cannot connect to it.
Actually, local clients can establish the connection. But remote clients cannot connect to my TCP server.
Does the ant put some restrictions (sandbox?) on applications launched from it?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.