I need to add different ports in Traccar Input Server. How can i able to add it. We are using Ubuntu 18.04.
Depends on your network infrastructure.
Traccar ports are documented in the traccar config file.
You will at least need to open the port in the Ubuntu firewall, probably ufw command.
Plenty of information on Google on how to do that.