Configuring Public Ip of signalling server for pixel streaming

Hello, I am trying to deploy a pixel streaming solution on AWS. i got it almost working, the only problem i am facing is with connecting matchmaker on another server. in the config.json file if i put the IP address of the instance instead of “localhost” in the line “PublicIp”: “localhost”, it works fine. but i want someway that the IP address can be fetched automatically and does not have to be hardcoded. any idea how i can do that?
p.s. also is there a way to improve the mouse performance? it trails badly right now.

Help…Anyone???