Use same Port for different Protocol

tonyhhkx8 years ago

Dear All,

i uses 2 different device/protocol (teltonika and gt06).

I would like to use a same port (Ex 5555) for both protocol.
If i puts the same port for the different protocols, the system shows a error because i think have sees a port conflict.

Is possible updating the code to use a same port to manage 2 different device/protocol?

Thanks in advance.

Antonio

Anton Tananaev8 years ago

It's not possible in general, but if you just need those two, it might be possible with some code modifications.

tonyhhkx8 years ago

Could you please explain how can i update the source code (which file to take a look) to use the same port for 2 protocols?

Anton Tananaev8 years ago

It's not a simple change. You need to have a deep understanding of how Netty works.

tonyhhkx8 years ago

I've a developer background, I think I can do it but should be a good idea to know where can start because there are a lot of files to check

Anton Tananaev8 years ago

I would recommend to start with Netty documentation:

http://netty.io/3.8/guide/

Then you can take a look at corresponding protocol and protocol decoder classes in Traccar.