title: TypeError: socket.bind() takes exactly one argument (2 given)
body: <pre class="lang-py prettyprint-override"><code>from socket import *
  
  def main ():
      print('''========================================================================== ''')
      print('''  [-]   S T A R T I N G      T H E        D E C O Y        S E R V E R  [-] ''')
      print('''========================================================================== ''')
      ip_add = &quot;192.168.43.195&quot;
      port = 80
      try :
          socket_connection=socket(AF_INET,SOCK_STREAM)
          socket_connection.bind(port,ip_add)
          socket_connection.listen(10)
          while 1 :
              attacker_connection,attacker_addr = socket_connection.accept()
              print(&quot;Decoy Server Is Created on The Attacker&quot;.format(attacker_addr[0]))
              attacker_connection.send(b&quot;&lt;h1&gt; Unable to connect from The server Please Check Your Network Connection &lt;/h1&gt;&quot;)
              data = attacker_connection.recv(3072)
              print(data)
      except error as identifier:
          print(&quot;An Error Was Encounterd While Deploying A Decoy Server&quot;.format(identifier))
      except KeyboardInterrupt as ky :
          print(&quot;Decoy Server Stopped By The User&quot;)
          print(&quot; [+]..../ Exiting \....[+] &quot;)
      finally:
          socket_connection.close()
  if __name__ == '__main__':
        main()
  </code></pre>
  <p>This Is my code whenever I run the program it shows bind() takes exactly one argument how to bind ipadd(),port in two arguments</p>