Can i have in logstash 2 different inputs with 2 different ports

yes, it's working...

see
https://discuss.elastic.co/t/logstash-with-multiple-inputs/79326
or
https://discuss.elastic.co/t/logstash-multiple-tcp-inputs-with-different-ports/61911