Typically you run the *something* which provides your service on port 1158.
The *something* usually has a well defined notion of how to configure
it to listen on port 1158, it can be configured in a text config file,
it can be configed on the command line, it can be hardcoded in, or
maybe it might lookup what the standard port is defined in /etc/services,
(or a network information service), and use that.
But it all depends on what that *something* does, and you've left the
definition of that *something* as an unknown to everybody else here.
I can give you a command that would listen on port 1158, but it almost
certainly won't do what you are expecting.