It's possible with some code modifications.
Another option is to configure router to forward two different external ports to a single internal port.
would you guide me which part of the code I should modify?
The easiest option is probably to modify protocol class.
is it possible to open two different ports for the same tracking device/protocol?