Specify VPN port in windows 10, "Edit VPN Connection"
Solution 1
You cannot change the port number for the Windows built-in VPN. The most you can do is use port-forwarding on the router.
I believe that this is possible if you use OpenVPN instead of using Windows for both server and client.
Solution 2
You CAN configure the Windows built-in VPN.
eg. 1.2.3.4:10443
Here are some more options for such configurations provided by Fortinet:
More options for “Server name or address” field.
(a) To use port 10443 and realm “realmname”: ServerAddress:10443/realmname
(b) To ignore server certificate error: ServerAddress:10443/realmname?ignore-certificate-errors=1 , or ServerAddress:10443/realmname?ice=1 , or ServerAddress:10443/realmname?ice
(c) To enable pop-up to select client certificate: ServerAddress:10443/realmname?cert=
(d) To pre-configure a client certificate: ServerAddress:10443/realmname?cert=SubStringOfCertSubject
(e) To use PKI user (certificate user): ServerAddress:10443/realmname?cert=&no-username-password=1 , or ServerAddress:10443/realmname?cert=&nup=1 , or ServerAddress:10443/realmname?cert=&nup
Related videos on Youtube
Anders Lindén
Updated on September 18, 2022Comments
-
Anders Lindén over 1 year
It seems like i am only able to specify a hostname or an ip address as "Server name or adress", but how do I specify the port?
I was trying to separate the port with colon and comma, semicolon and space without success.
-
Anders Lindén over 5 yearsDo you know if I can hack in the port in a config file or the registry for that certain connection?
-
Anders Lindén over 5 yearsI can confirm that it is possible to specify the port in OpenVPN, but I would prefer to use the VPN client that is already in the system, if possible.
-
harrymc over 5 yearsAs a wild idea, you might be able to change the port number of the service in the file
%systemroot%\system32\drivers\etc\services
and reboot. The service might bel2tp
or there might be additional others. -
undrline - Reinstate Monica about 3 yearsBut the original post says: "I was trying to separate the port with colon and comma, semicolon and space without success." ... are you saying they're wrong?