diff --git a/src/calibre/gui2/dialogs/config.py b/src/calibre/gui2/dialogs/config.py
index 73a5176857..e096c0dcf3 100644
--- a/src/calibre/gui2/dialogs/config.py
+++ b/src/calibre/gui2/dialogs/config.py
@@ -113,6 +113,7 @@ class ConfigDialog(QDialog, Ui_Dialog):
self.port.setValue(opts.port)
self.username.setText(opts.username)
self.password.setText(opts.password if opts.password else '')
+ self.hostname.setText(opts.hostname)
self.auto_launch.setChecked(config['autolaunch_server'])
def up_column(self):
@@ -218,6 +219,7 @@ class ConfigDialog(QDialog, Ui_Dialog):
sc = server_config()
sc.set('username', unicode(self.username.text()).strip())
sc.set('password', unicode(self.password.text()).strip())
+ sc.set('hostname', unicode(self.hostname.text()).strip())
sc.set('port', self.port.value())
of = str(self.output_format.currentText())
fmts = []
diff --git a/src/calibre/gui2/dialogs/config.ui b/src/calibre/gui2/dialogs/config.ui
index 66fa5bdf5c..c83df1e11a 100644
--- a/src/calibre/gui2/dialogs/config.ui
+++ b/src/calibre/gui2/dialogs/config.ui
@@ -72,7 +72,7 @@
-
- 0
+ 3
@@ -692,6 +692,22 @@
+ -
+
+
+ If you plan to use the content server to access your ebook collection on an iphone using the stanza reader, you will need to enter either the fully qualified &hostname or the IP address for your computer below. You can then browse your books by adding the URL http://myhostname/stanza as a custom catalog in the stanza reader on your iphone.
+
+
+ true
+
+
+ hostname
+
+
+
+ -
+
+
-