Appium Server URL keeps changing after restarting

I wont say this is a bug but an issue for me.
The server URL i use to connect to the appium server keeps changing after either i restart the server or close my laptop. How can i avoid this problem and having to keep updating the URL in my code? I cant use localhost because my configurations are a bit different. I’m using my local machine to run my test cases and the execution of these test cases happens on jenkins. Is there a way to have a constant server URL for appium?

Thanks.