esiii it's really hard for me to understand what you're trying to do but here's what I can tell you
You don't need to do this in cfg files (and shouldn't I think)
You can simply open the game on the PC you want, open the console and type bind F1 "connect 192.168.1.100
Then it will bind that command to the F1 key.
Note that this F1 bind will only work in-game so you have to start a custom game to be able to press F1.
Then even if you exit the game and start it again the F1 will still be available (in-game only)