From 5a76118e34c76821c131c42f1b13330668687a76 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Mon, 16 Jun 2014 03:53:03 +0200 Subject: [PATCH] allow connections from any host --- virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py index 1ea9958..fbf18d9 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py @@ -723,7 +723,7 @@ class VirtualICC(object): def openPort(port): server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - server_socket.bind(('localhost', port)) + server_socket.bind(('', port)) server_socket.listen(0) logging.info("Waiting for vpcd on port " + str(port)) (client_socket, address) = server_socket.accept()