Well, if you don't want to deal with command line arguments (but why?) in your application then hard-wire such parameters in code. For instance, using this
code sample[
^], change (in the client code) from
h = gethostbyname(argv[1]);
to
h = gethostbyname("127.0.0.1");