Click here to Skip to main content
11,721,053 members (83,929 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET socket udp VPN
Hi

I have a UDP Listener running as a service on a server written in .Net which has been working fine, but now my client is using a VPN connection to the server as well.

It seems that the UDP listener is not detecting any traffic from the VPN connection

I've tried binding it to IPAddress.Any

Any suggestion appreciated.

Socket is been created like:
Dim soUdp As New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)
Dim localIpEndPoint As New IPEndPoint(IPAddress.Any, UDP_SocketNO)
soUdp.Bind(localIpEndPoint)

Thanks
john
Posted 20-Dec-12 1:26am
Comments
Richard MacCutchan at 20-Dec-12 8:51am
   
Are you sure that your client is sending it to the correct IP address and port? Also remember that UDP is not reliable and packet delivery is not guaranteed.
pokemonjohn at 20-Dec-12 9:03am
   
My server has 2 network adapters - 1 is a physical card the other is a VPN.

I have connections coming into the server and been picked up by the UDP listener when the data come via the physical network card.

When data comes in via the VPN the listener does not pick it up. I know data is coming in as wireshark is picking it up - it all looks good - the only difference is the adapter routing the data.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I found out it was how a 3rd party was passing through the data to the VPN - once they changed a setting it all worked again !
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 500
1 OriginalGriff 334
2 Mika Wendelius 160
3 F-ES Sitecore 140
4 Maciej Los 80
0 Sergey Alexandrovich Kryukov 2,199
1 OriginalGriff 959
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100