View Single Post
  #1  
Old 09-20-2019, 03:07 AM
JensH JensH is offline
Registered User
 
Join Date: Sep 2019
Posts: 2
python: send to port

Hi,

It is possible to send all output to a network Port?
So i can catch it like this?

sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT)))
Daten, addr = sock.recvfrom(1024)
print(data.decode('UTF-8').upper())
Reply With Quote