There’s not possible to rename or change the input port of a midi remote script.
Could you please write step by step repro?
Sorry, I delete all of my rant and also the second part because I think, it just works differently from what I expected.
It would be rather convenient though, if it could be possible, to change the name and port of a midi remote instead of having to create a new one.
Best regards & thanks for asking