Need to close the firewall
I tested the connection between the host and the virtual machine, and there was nothing wrong with the ip and port. JMX Port also set up a firewall, but it didn't work.
Later, it was found that in addition to the monitoring port number specified by JMXserver, JMXserver will also monitor one or two random port numbers, which are randomly assigned. Only when the firewall is turned off can the connection be successful.
How does kali configure a firewall for an ip address?
Enter the system firewall, advanced settings, add this ip address to the blacklist, and cultivate the firewall according to the security policy. Every manufacturer's firewall command is different, depending on which manufacturer's product you are using.
How to set up firewall for Linux server?
There are many kinds of firewalls in Linux, which are generally called iptables.
1.linux firewall (Iptables) restarts the system to take effect 12. On: chkconfigIptableson off: chkconfigiptablesoff2. Linux firewalls (iptables) take effect immediately, and will be invalid after restarting 12. open:serviceiptablesstart closes:serviceipablestop 3。 For other Linux firewalls, please refer to the documentation yourself. Generally, services under Linux can be turned on and off with the above commands. Firewalls generally operate as services, so it is a common method.