I get an error at line listener.bind(("192.168.10.5", 4444)):
OSError: [WinError 10049] The requested address is not valid in its context
Python code:
#!usr/bin/python
import socket
listener=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
listener.setsocket(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
listener.bind(("192.168.10.5", 4444))
listener.listen(0)
print("[+] waiting for incoming connections")
listener.accept()
print("[+] Got a connection")
Error
listener.bind(("192.168.10.5", 4444))
OSError: [WinError 10049] The requested address is not valid in its context