Variable: server-port

server-port is a customizable variable defined in server.el.gz.

Value

nil

Documentation

The port number that the server process should listen on.

This variable only takes effect when the Emacs server is using TCP instead of local sockets. A nil value means to use a random port number.

This variable was added, or its default value changed, in Emacs 24.1.

View in manual

Probably introduced at or before Emacs version 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/server.el.gz
(defcustom server-port nil
  "The port number that the server process should listen on.
This variable only takes effect when the Emacs server is using
TCP instead of local sockets.  A nil value means to use a random
port number."
  :type '(choice
          (string :tag "Port number")
          (const :tag "Random" nil))
  :version "24.1")