Hi Al, I am new to clamav. I am able to install it on RHEL AWS environment and enabled it to run on port 3310.
[ec2-user@ip-172-30-0-245 ~]$ sudo netstat -anp |grep 3310 tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 2421/clamd However, I am trying to access it from the java program and I am getting connection refused error. Attached is the java program that tries to connect to clamd. Can you please shed some light into this problem? Below is the java program stacktrace: ============================== 2016-07-25 09:37:10,215 [main] DEBUG n.taldius.clamav.impl.NetworkScanner - net.taldius.clamav.ScannerException: Error while requesting protocol channel net.taldius.clamav.ScannerException: Error while requesting protocol channel at net.taldius.clamav.impl.NetworkScanner.openProtocolChannel(NetworkScanner.java:163) at net.taldius.clamav.impl.NetworkScanner.performScan(NetworkScanner.java:57) at com.ecorrservices.util.ClamAVVirusHandler.fileScanner(ClamAVVirusHandler.java:90) at com.ecorrservices.util.ClamAVVirusHandler.fileScanner(ClamAVVirusHandler.java:76) at com.ecorrservices.util.ClamAVVirusHandler.main(ClamAVVirusHandler.java:102) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at net.taldius.clamav.impl.NetworkScanner.openProtocolChannel(NetworkScanner.java:139) ... 4 more Out put == false Thank you, Ravi _______________________________________________ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml