Where are the services on localhost defined?

where are the services on localhost defined?

All services are defined in the services.cfg file. It doesn’t matter if it’s local or remote, ALL services.