Click here to Skip to main content
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 2: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 OriginalGriff 6,569
1 Sergey Alexandrovich Kryukov 6,168
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2014
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