Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any multicast traffic generators for Windows?

share|improve this question
    
uTorrent uses UDP, an type of Multicast .. –  HackToHell Mar 17 '12 at 12:06
    
Do you need specific address/port for multicast traffic or any kind of traffic will be enough? –  crea7or Mar 26 '12 at 19:58
    
Any kind of traffic –  Mohammad Bagher Saberi Mar 27 '12 at 4:36

1 Answer 1

Multicast traffic is actually pretty simple to create with any programming language. If you got python installed here's an example, I hope it works under Windows.

import sys
import socket
from time import sleep

UDP_IP=sys.argv[1]
UDP_PORT=sys.argv[2]
TTL=2
DATA="whateverandever"

sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, TTL)

while True:
  sock.sendto ( DATA, (UDP_IP, int(UDP_PORT)) )
  sleep(1)

Save it to i.e. mcast.py and execute it like this:

python mcast.py <destination> <port>

Change TTL in the script if you whant the traffic to reach further down in the network.

share|improve this answer
    
I need a 3rd party tool Intenso –  Mohammad Bagher Saberi Mar 27 '12 at 4:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.