- Port 7199
- Used for about a dozen packets when JMX connection first made
- A handshake of sorts
- Probably sets up the agreement on which high port to connect to, used below
- Similar to SIP
- Similar to old FTP
- Not used again after initial handshake
- Port range 55000 to 55999
- To see these packets, on JVM server
- tcpdump -nn ! port 22 and host <jconsole client IP> (not literal, replace this)
- If jconsole starts showing graphs, you are connected
Tricks and Tips
- If you don't want to expose 1000 ports to the world for some reason
- Open all ports on firewall in front of JVM server
- On JVM server: tcpdump -nn ! port 22 and host <jconsole client IP>
- Start jconsole connection on client machine
- Watch to see which port JVM server is trying to reach jconsole client via
- Close all but that port in the firewall, will be between 55000-55999
- Do a local experiment to a local JVM JMX-able application if unsure of good jconsole connection result
- Get your external IP from where you are running jconsole client
- CLI: curl http://ipaddr.me
- Or web browser: http://ipaddr.me
No comments:
Post a Comment
Note: only a member of this blog may post a comment.