Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I am working with VPN server and the VPN client can connect to the VPN server successfully. and now I am looking for a way to fetch VPN Client IP address programmatically on the server where my VPN server is installed when the VPN client starts a connection to the VPN server using .net C#.

I have done a lot of research and I found that we are unable to fetch VPN client IP address as VPN is to be used in term of anonymous.

Is there any possible way to fetch IP address of VPN client programmatically when VPN client connects to VPN server using .net C#?

P.S: I want this code to run on a server.
Thank you so much.
Posted

That depends entirely on your VPN server. Contact the manufacturer of that and you might get somewhere. There isn't really a "standard" way of doing this.
 
Share this answer
 
Hi Dave,

I was able to see the list of VPN Client on the server log. But I intend to see this programmatically using .net C#?
Is it possible to do so?

Thanks
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900