MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / start_server_process

Function start_server_process

Scripts/Network Tools/Connections.py:114–120  ·  view source on GitHub ↗
(secret_key, verbose_mode)

Source from the content-addressed store, hash-verified

112 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
113 try:
114 # Use a public DNS server to find the most likely outbound IP
115 s.connect(('8.8.8.8', 80))
116 IP = s.getsockname()[0]
117 except Exception:
118 IP = '127.0.0.1'
119 finally:
120 s.close()
121 return IP
122
123def start_server_process(secret_key, verbose_mode, allow_lan=False):

Callers 1

Connections.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected