Hello @LastPass User,
Welcome to the LastPass Community!
It's a pleasure to guide you with this question, I think the best option will be the URL Rule, by checking these steps directly: Manage URL Rules in LastPass. It is applied to the exact port for different accounts and password. However, it will be to test it with IP addresses instead of URL/Domains. If it also helps you, you can try using also the equivalent domain option: Manage Equivalent Domains in LastPass
Kind Regards,
Alejandra
LastPass Support