I'm wondering how it's possible to not hard-code a string, for example, an IP in some software, or in remote connection software.
I heared about a Cyber Security Expert which found the IP of someone who was hacking people in hes software, and with that they tracked him.
So, how can I avoid hardcoding my IP in to the software, and how do people find my IP if I do hardcode it?
One option is to use asymmetric encryption, you can request the private string from a server using it (see SSL/TLS).
If you want to do it locally you should write/read to a file (OS should take care of authorization, by means of user access)
How to not hardcode a String in a software?