Hello!
I have a simple script running at the xbox:
from socket import *
host = ''
port = 1500
buf = 1024
addr = (host,port)
UDPSock = socket(AF_INET,SOCK_DGRAM)
UDPSock.bind(addr)
while 1:
data,addr = UDPSock.recvfrom(buf)
if not data:
print "Client has exited!"
break
else:
print "\nReceived message '", data,"'"
s=str(data)
f=open("q:\\scripts\\workfile.txt", "a")
f.write(s)
f.write('\n')
f.close()
UDPSock.close()
Later im gonna display the message onscreen instaed of writing to HDD.
But my problem is this:
If i send a packet from my linux-box with destination adress 192.168.0.4 (adress of the xbox), everything works.
But, if I send the packet with the adress 192.168.0.255, the network broadcast adress, the xbox wont recive the packet.
I have also run the same app at my workstation pc, and the pc will recieve the broadcast packet.
So my question is:
what to do? does XBMC / the xbox not support recieving of broadcast packets?
or do I need to do something special?
thnx in advice
baabaa