SphinUX Paster

NAT Punch
  1. #! /usr/bin/python
  2.  
  3. import socket
  4. import sys
  5. import struct
  6. from select import select
  7.  
  8. host = '10.10.0.1'
  9. port = 31414
  10. master=(host,port)
  11. sockfd = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
  12. sockfd.sendto("HELLO", master)
Parsed in 0.002 seconds