Skip to content

Instantly share code, notes, and snippets.

@albertlai431
Created April 25, 2019 23:11
Show Gist options
  • Save albertlai431/4e8b7b77d129a173f501bd1b44125d19 to your computer and use it in GitHub Desktop.
Save albertlai431/4e8b7b77d129a173f501bd1b44125d19 to your computer and use it in GitHub Desktop.
UDP_IP = "172.0.0.1" #UDP IP adress
UDP_PORT = 6082 #UDP port for osc stream
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT)) #binding the name to the socket!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment