mirror of
				https://github.com/KevinMidboe/Node-Com-Handler.git
				synced 2025-10-29 17:50:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			267 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			267 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from socket import *
 | |
| from time import sleep
 | |
|                   
 | |
| host = '10.0.0.41'
 | |
| port = 12000
 | |
|  
 | |
| clientSocket = socket(AF_INET, SOCK_DGRAM)
 | |
| 
 | |
| clientSocket.sendto('plex', (host, port))
 | |
| message, address = clientSocket.recvfrom(1024)
 | |
| print message
 | |
| 
 | |
| 
 | |
| clientSocket.close()
 |