Hello there!
I'm trying to comunicate with a Call of Duty 2 server ( based on Quake 3 Enigine ), to send some data to it and get some in return.
So ( using Python - sockets) i was able to send data to the server but i cant get any back. Here is the script i'm curently using.
My source was from guy named Aluigi (aluigi.org) : http://aluigi.altervista.org/papers/q3info.txtCode:import socket # Importing module # Creating socket File sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP connection sock.connect(('master3.idsoftware.com', 27950)) # Connectiong to cod2 UDP server sock.sendto('\xff\xff\xff\xffgetstatus',('80.241.208.55', 28960)) # Server i whoud like to inspect data, addr = sock.recvfrom(7000) # Waiting for Replay. print "received message:", str(data), addr # Printing out the resoult
The reason i uploaded this here and not on Python forum is becouze this code works but servers are broke. i saw:
that he wrote. and servers do connect but i'm not getting any data in return.When we go on the multiplayer option, our client will start to search
servers on LAN, Mplayer, Internet and Favourites.
- LAN: 255.255.255.255
port: 27960, 27961, 27962, 27963
- Mplayer: 60.242.0.0
port: 27950
- Internet: 60.242.0.0 or master3.idsoftware.com
port: 27950
any sugestions ?

Reply With Quote

