Click here to Skip to main content
11,933,253 members (64,013 online)
Rate this:
Please Sign up or sign in to vote.
See more: .NET udp Sockets VPN

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)

Posted 20-Dec-12 2:26am
Richard MacCutchan 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 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
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 !

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.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