rinApp: added support for port 2224 and 2225 connection with user callbacks