UDP traffic over WAN

December 16, 2009 at 07:05:56
Specs: Windows XP
I have a program that sends out UDP traffic via the usual way:

The Server:
private IPEndPoint iepSend = null;
private IPEndPoint iepSend2 = null;
private Socket sendSocket = null;
sendSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
iepSend = new IPEndPoint(IPAddress.Any, 4203);
iepSend2 = new IPEndPoint(IPAddress.Parse(""), 4203);
sendSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse("")));
sendSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, 50);
byte[] bytes = UnicodeEncoding.ASCII.GetBytes("hello world");
sendSocket.SendTo(bytes, iepSend2);

The Client
UdpClient clientListener = new UdpClient(4203);
IPEndPoint iep = new IPEndPoint(IPAddress.Any, 0);
byte[] bytes = clientListener.Receive(ref iep);
string s = UnicodeEncoding.ASCII.GetString(bytes);

Now this code works in the local LAN. We even got it working to other VLANs through ip pim sparse-dense-mode on our Cisco 6504 switch. The problem is that we want this to run to a remote location outside of our LAN. We have a T1 connection to another site. We can ping and do file transfers with the remote machines. But the remote machines do not "hear" the multicast messages. What settings need to be set so that the remote site can get this multicast traffic? Many thanks in advance.

See More: UDP traffic over WAN

Report •

December 16, 2009 at 17:34:32
Look at the devices on the end points of the T-1. If a router then look at it's config. Post what is on the T-1's. I suspect another router. It may or may not have an interface configured on the T-1 side. We don't on a dedicated line so it acts like a lan.

Playing to the angels
Les Paul (1915-2009)

Report •
Related Solutions

Ask Question