From 87264e2c3dc25347a6ea1f2c28d128e23c0df553 Mon Sep 17 00:00:00 2001 From: Anze Date: Tue, 7 Apr 2020 20:52:28 +0200 Subject: [PATCH] Bind to any (IPv4) address --- netflowcollector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netflowcollector.py b/netflowcollector.py index 2df99e7..8598ba1 100644 --- a/netflowcollector.py +++ b/netflowcollector.py @@ -26,7 +26,7 @@ def pass_netflow_data(netflow_port, named_pipe_filename): # endless loop - read netflow packets from UDP port and write them to named pipe: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) - server_address = ('localhost', netflow_port,) + server_address = ('', netflow_port,) # '' binds to any IPv4 address (not IPv6!) log.debug('starting up on {} port {}'.format(*server_address)) sock.bind(server_address)