I configured and started an emacs server in TCP mode:
- Added
(setq server-host "10.16.184.33")
and(setq server-use-tcp t)
to .emacs - ran
emacs --daemon
On the same host, running emacsclient -t
brings up an emacs frame in the current terminal, and running emacsclient -c
brings up a new graphical client frame, as expected.
On a different host, running emacsclient -t -f ~/.emacs.d/server/server
appears to successfully connect to the remote emacs server, but no frame is created in the terminal:
$ emacsclient -t -f ~/.emacs.d/server/server
emacsclient: connected to remote socket at 10.16.184.33
At this point, emacsclient is running in the foreground, and a Ctrl-c stops it with a SIGTERM.
the value of the server-client
variable shows that remote emacs client is connected:
server-clients's value is
(#<process server <10.16.184.33:52710>> #<process server <10.16.177.8:59460>>)
Things that I've checked:
- versions of Emacs and emacsclient: all 24.3
- when swapping which machines are the server and the remote client, the same problem occurs, except...
emacsclient prints an extra error message
emacsclient: connected to remote socket at 10.16.177.8 *ERROR*: Could not open file: /dev/pts/26
Any ideas of what else to check or configure?