Specify VPN port in windows 10, "Edit VPN Connection"

17,273

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

Share:
17,273

Related videos on Youtube

Anders Lindén
Author by

Anders Lindén

Updated on September 18, 2022

Comments

  • Anders Lindén
    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.

    from windows 10 settings

  • Anders Lindén
    Anders Lindén over 5 years
    Do you know if I can hack in the port in a config file or the registry for that certain connection?
  • Anders Lindén
    Anders Lindén over 5 years
    I 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
    harrymc over 5 years
    As 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 be l2tp or there might be additional others.
  • undrline - Reinstate Monica
    undrline - Reinstate Monica about 3 years
    But 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?