JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser .
Solved Port number for built in Windows VPN
Well-known member
Pro User
VIP
Hi folks.
For Windows's own built in VPN server any idea what port forwarding number should be defined in the router.
I have no trouble with a "Variable" IP address with the vpn server as I have a little batch program that sends me the current ip address of that machine -- with most fibre optic systems it seems that once booted the IP address changes very seldom anyway but the script is still useful.
E.g from the windows WSL run a bash command. (This is just to test the principle -- to run as a batch job say every 2 hours change the console input (read) to variables.
!/bin/bash
# Send email from bash
# simple script to send simple email with your IP address (external)
read -p "Enter SMTP email server address: " server
read -p "Enter SMTP Port: " port
read -p "Enter Your Email Address: " from
read -p "Enter Recipient's Email Address: " to
# get your public IP address
myip="$(dig +short myip.opendns.com @ReS olver1.opendns.com)"
# create message
function mail_input {
echo "ehlo $(hostname -f)"
echo "MAIL FROM: <$from>"
echo "RCPT TO: <$to>"
echo "DATA"
echo "From: <$from>"
echo "To: <$to>"
echo "Subject: Testing SMTP Mail"
echo " "
echo "Your public internet address is "
echo $myip
echo " "
echo "finished"
echo "."
echo "quit"
}
mail_input | netcat $server $port || err_exit
Don't forget to finish the inline text with the "." line before the SMTP quit command.
Using this method doesn't require the use of an email server or client on the host (you will need to read the email of course to see the content !!)
This should also render those programs like dyndns etc unnecessary too.
After this you have the ip address so you should be able to connect.
Probably you can run a similar script in windows -- netcat etc.
cheers
jimbo
OS
Windows XP,7,10,11 Linux Arch Linux
Computer type
PC/Desktop
CPU
2 X Intel i7
Antidisestablishmentarianist
Pro User
VIP
OS
Windows 11 23H2 Current build
Computer type
PC/Desktop
Manufacturer/Model
HomeBrew
CPU
AMD Ryzen 9 3950X
Motherboard
MSI MEG X570 GODLIKE
Memory
4 * 32 GB - Corsair Vengeance 3600 MHz
Graphics Card(s)
EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
Sound Card
Realtek® ALC1220 Codec
Monitor(s) Displays
2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
Screen Resolution
3x 3840 x 2160
Hard Drives
3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
PSU
PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
Case
Fractal Design Define 7 XL Dark ATX Full Tower Case
Cooling
Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
Keyboard
SteelSeries Apex Pro Wired Gaming Keyboard
Mouse
Logitech MX Master 3S | MX Master 3 for Business
Internet Speed
AT&T LightSpeed Gigabit Duplex Ftth
Browser
Nightly (default) + Firefox (stable), Chrome, Edge , Arc
Antivirus
Defender + MB 5 Beta
Operating System
ChromeOS Flex Dev Channel (current)
Computer type
Laptop
Manufacturer/Model
Dell Latitude E5470
CPU
Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
Motherboard
Dell
Memory
16 GB
Graphics card(s)
Intel(R) HD Graphics 520
Sound Card
Intel(R) HD Graphics 520 + RealTek Audio
Monitor(s) Displays
Dell laptop display 15"
Screen Resolution
1920 * 1080
Hard Drives
Toshiba 128GB M.2 22300 drive
INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
PSU
Dell
Case
Dell
Cooling
Dell
Mouse
Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
Keyboard
Dell
Internet Speed
AT&T LightSpeed Gigabit Duplex Ftth
Well-known member
Pro User
VIP
Typo? shouldn't it be port 1723?
OS
Windows 11 Pro 23H2 build 10.0.22631.5189 (Release Channel) / Linux Mint 22.1 Cinnamon
Computer type
Laptop
Manufacturer/Model
Lenovo A485
CPU
Ryzen 7 2700U Pro
Motherboard
Lenovo (WiFi/BT module upgraded to Intel Wireless-AC-9260)
Memory
32GB
Graphics Card(s)
iGPU Vega 10
Sound Card
Realtek
Monitor(s) Displays
14" FHD (built-in) + 14" Lenovo Thinkvision M14t (touch+pen) + 32" Asus PB328
Screen Resolution
FHD + FHD + 1440p
Hard Drives
Intel 660p m.2 nVME PCIe3.0 x2 512GB
PSU
65W
Keyboard
Thinkpad / Logitech MX Keys
Mouse
Logitech MX Master 2S
Internet Speed
600/300Mbit
Browser
Edge (Chromium)
Antivirus
Windows Defender
Other Info
SecureBoot: Enabled
TPM2.0: Enabled
AMD-V: Enabled
Operating System
Windows 11 Pro 23H2 build 10.0.22631.5189(Release Preview Channel)
Computer type
PC/Desktop
Manufacturer/Model
Custom
CPU
i7-7700k @4.8GHz
Motherboard
Asus PRIME Z270-A
Memory
32GB 2x16GB 2133MHz CL15
Graphics card(s)
EVGA GTX1080Ti FTW 11GB
Sound Card
Integrated
Monitor(s) Displays
32" 10-bit Asus PB328Q
Screen Resolution
WQHD 2560x1440
Hard Drives
512GB ADATA SX8000NP NVMe PCIe Gen 3 x4
PSU
850W
Case
Fractal Design Define 7
Cooling
Noctua NH-D15 chromax.black
Mouse
Logitech MX Master 2S
Keyboard
Logitech MX Keys
Internet Speed
600/300Mbit
Browser
Edge (Cromium)
Antivirus
Windows Defender
Other Info
AC WiFi Card
Antidisestablishmentarianist
Pro User
VIP
Typo? shouldn't it be port 1723?
Lol yes, thank you, I definitely '
fat-fingered ' that one!
Fixed!
OS
Windows 11 23H2 Current build
Computer type
PC/Desktop
Manufacturer/Model
HomeBrew
CPU
AMD Ryzen 9 3950X
Motherboard
MSI MEG X570 GODLIKE
Memory
4 * 32 GB - Corsair Vengeance 3600 MHz
Graphics Card(s)
EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
Sound Card
Realtek® ALC1220 Codec
Monitor(s) Displays
2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
Screen Resolution
3x 3840 x 2160
Hard Drives
3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
PSU
PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
Case
Fractal Design Define 7 XL Dark ATX Full Tower Case
Cooling
Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
Keyboard
SteelSeries Apex Pro Wired Gaming Keyboard
Mouse
Logitech MX Master 3S | MX Master 3 for Business
Internet Speed
AT&T LightSpeed Gigabit Duplex Ftth
Browser
Nightly (default) + Firefox (stable), Chrome, Edge , Arc
Antivirus
Defender + MB 5 Beta
Operating System
ChromeOS Flex Dev Channel (current)
Computer type
Laptop
Manufacturer/Model
Dell Latitude E5470
CPU
Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
Motherboard
Dell
Memory
16 GB
Graphics card(s)
Intel(R) HD Graphics 520
Sound Card
Intel(R) HD Graphics 520 + RealTek Audio
Monitor(s) Displays
Dell laptop display 15"
Screen Resolution
1920 * 1080
Hard Drives
Toshiba 128GB M.2 22300 drive
INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
PSU
Dell
Case
Dell
Cooling
Dell
Mouse
Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
Keyboard
Dell
Internet Speed
AT&T LightSpeed Gigabit Duplex Ftth
Well-known member
Pro User
VIP
Also GRE needs TCP/47, PPTP TCP/1723, L2TP UDP/1701, ISAKMP and CISCO etc... TCP-UDP/500 and UDP/4500 (IPSec)
Did I get all of them...
OS
Windows 11 Pro 23H2 build 10.0.22631.5189 (Release Channel) / Linux Mint 22.1 Cinnamon
Computer type
Laptop
Manufacturer/Model
Lenovo A485
CPU
Ryzen 7 2700U Pro
Motherboard
Lenovo (WiFi/BT module upgraded to Intel Wireless-AC-9260)
Memory
32GB
Graphics Card(s)
iGPU Vega 10
Sound Card
Realtek
Monitor(s) Displays
14" FHD (built-in) + 14" Lenovo Thinkvision M14t (touch+pen) + 32" Asus PB328
Screen Resolution
FHD + FHD + 1440p
Hard Drives
Intel 660p m.2 nVME PCIe3.0 x2 512GB
PSU
65W
Keyboard
Thinkpad / Logitech MX Keys
Mouse
Logitech MX Master 2S
Internet Speed
600/300Mbit
Browser
Edge (Chromium)
Antivirus
Windows Defender
Other Info
SecureBoot: Enabled
TPM2.0: Enabled
AMD-V: Enabled
Operating System
Windows 11 Pro 23H2 build 10.0.22631.5189(Release Preview Channel)
Computer type
PC/Desktop
Manufacturer/Model
Custom
CPU
i7-7700k @4.8GHz
Motherboard
Asus PRIME Z270-A
Memory
32GB 2x16GB 2133MHz CL15
Graphics card(s)
EVGA GTX1080Ti FTW 11GB
Sound Card
Integrated
Monitor(s) Displays
32" 10-bit Asus PB328Q
Screen Resolution
WQHD 2560x1440
Hard Drives
512GB ADATA SX8000NP NVMe PCIe Gen 3 x4
PSU
850W
Case
Fractal Design Define 7
Cooling
Noctua NH-D15 chromax.black
Mouse
Logitech MX Master 2S
Keyboard
Logitech MX Keys
Internet Speed
600/300Mbit
Browser
Edge (Cromium)
Antivirus
Windows Defender
Other Info
AC WiFi Card
Antidisestablishmentarianist
Pro User
VIP
Yeah, I don't use the built-in one, so I didn't even consider looking at all the available options for protocols lol.
OS
Windows 11 23H2 Current build
Computer type
PC/Desktop
Manufacturer/Model
HomeBrew
CPU
AMD Ryzen 9 3950X
Motherboard
MSI MEG X570 GODLIKE
Memory
4 * 32 GB - Corsair Vengeance 3600 MHz
Graphics Card(s)
EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
Sound Card
Realtek® ALC1220 Codec
Monitor(s) Displays
2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
Screen Resolution
3x 3840 x 2160
Hard Drives
3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
PSU
PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
Case
Fractal Design Define 7 XL Dark ATX Full Tower Case
Cooling
Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
Keyboard
SteelSeries Apex Pro Wired Gaming Keyboard
Mouse
Logitech MX Master 3S | MX Master 3 for Business
Internet Speed
AT&T LightSpeed Gigabit Duplex Ftth
Browser
Nightly (default) + Firefox (stable), Chrome, Edge , Arc
Antivirus
Defender + MB 5 Beta
Operating System
ChromeOS Flex Dev Channel (current)
Computer type
Laptop
Manufacturer/Model
Dell Latitude E5470
CPU
Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
Motherboard
Dell
Memory
16 GB
Graphics card(s)
Intel(R) HD Graphics 520
Sound Card
Intel(R) HD Graphics 520 + RealTek Audio
Monitor(s) Displays
Dell laptop display 15"
Screen Resolution
1920 * 1080
Hard Drives
Toshiba 128GB M.2 22300 drive
INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
PSU
Dell
Case
Dell
Cooling
Dell
Mouse
Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
Keyboard
Dell
Internet Speed
AT&T LightSpeed Gigabit Duplex Ftth
Well-known member
Pro User
VIP
Thread Starter
Also GRE needs TCP/47, PPTP TCP/1723, L2TP UDP/1701, ISAKMP and CISCO etc... TCP-UDP/500 and UDP/4500 (IPSec)
Did I get all of them...
View attachment 55403
No idea what any of that means
Thanks though 1723 works so marking problem as solved.
Tested it by using Mobile phone from 5G network to connect to the windows VPN.
"Alles in Ordnung" so marking as solved.
I know there are better more secure solutions but my primary goal was to get the wretched thing to work in the first place. After it's working is IMO the time to tighten up security and access, otherwise with some of this stuff nobody would ever get it working.
Cheers
jimbo
OS
Windows XP,7,10,11 Linux Arch Linux
Computer type
PC/Desktop
CPU
2 X Intel i7