When starting Emacs, init.el (or .emacs.el) is evaluated. However, when starting emacsclient, no similar lisp code is evaluated.
How can I get a lisp file to be eval
You can add a function to the hook 'server-visit-hook, which is run every time the server is called (every time you call emacsclient).
'server-visit-hook
emacsclient