Use an empty string for the default bind address
diff --git a/serve_localhost.py b/serve_localhost.py
index 514e682..3d447d6 100755
--- a/serve_localhost.py
+++ b/serve_localhost.py
@@ -22,7 +22,7 @@
import argparse
parser = argparse.ArgumentParser()
- parser.add_argument('--bind', '-b', default='localhost', metavar='ADDRESS',
+ parser.add_argument('--bind', '-b', default='', metavar='ADDRESS',
help='Specify alternate bind address '
'[default: all interfaces]')
parser.add_argument('--directory', '-d', default=os.getcwd(),