JConsole Can't Connect

[Sorry, this is a repeat from a different forum, this one seemed more appropriate so the other post can be deleted.]

I'm trying to use JConsole to monitor the memory usage of a program. According to the Sun documentation on it, all you have to do is run it setting the com.sun.management.jmxremote property and run jconsole as the same user.

java -Dcom.sun.management.jmxremote NCClient

as the same user, when I run jconsole and select the NCClient JVM, I get

Connection refused to host: xxx.xxx.xxx.xxx [my ip]; nested exception is:

java.net.ConnectException: Connection refused

Does anybody know why this is?

Thanks,

Andy

[680 byte] By [Zyphona] at [2007-11-26 12:22:10]
# 1
Which operating system is still (and which J2SE version)? Do you have a firewall configured?
alan.batemana at 2007-7-7 15:14:58 > top of Java-index,Archived Forums,Socket Programming...
# 2
hi,Can you test-Dcom.sun.management.jmxremote.port=9999-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=falseoptions ?Laurent,
lbaudeta at 2007-7-7 15:14:58 > top of Java-index,Archived Forums,Socket Programming...