How & Where to ES Configuration

Hi.
I want to find the es configuration file in the repo.
What I really want to do is change the IP & port: not using the localhost and 9200 port.
Would that be possible?
Thank you for your reply.

Do you mean for running tests against a remote cluster? What do you mean by repo? The k-NN repo?