How to print the special IP address connection number?

I’m using ROS 2.9.27, I want look a special IP address 192.168.1.85 connection number,
so i use the command:

/ip firewall connection print count-only from=[find src-address="192.168.1.85:4662"]
1035

it can be work.
But only IP is my needs,without PORT, such as:

/ip firewall connection print count-only from=[find src-address="192.168.1.85"]
0

it look like can’t be ok!

and if use “*” ,like this :

 /ip firewall connection print count-only from=[find src-address="192.168.1.85:*"]
invalid value * for port, an integer required !

How can i do? Help me please (⊙⊙?)~

You can not retrieve just the IP. You would need to parse out the information you need. This would take a lot of CPU and RAM if you had a lot of connections.

It would be nice to have this functionality out of the box from MT but I doubt we will ever see it.

You should try solving your issue from a different perspective like connection limiting rules and Queues.

-Louis

Thank you Letni,
I have limited the clients connections num,but i want look the special IP’s connection num

in another router of DD-WRT system, on “status”->“LAN” page ,we can look this:

Host name   IP address        MAC                        Conn. Count        Ratio [4096]

YLMFWWW  192.168.1.240   00:14:85:86:**:**    92                     2%

so i think in the ROS maybe >_<