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 @ReSolver1.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
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 @ReSolver1.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
My Computer
System One
-
- OS
- Windows XP,7,10,11 Linux Arch Linux
- Computer type
- PC/Desktop
- CPU
- 2 X Intel i7