How to share internet on wan network?
-
29 aprilie 2012 15:58
Hi.
I have a server that the server OS is windows server 2003.
I want to share internet of server.
I want to make 2 program (server and client) that client program run on a personal computer and can connect to my program that running on server and get internet from server program.Like as VPN or CCProxy.
Thanks.!
Toate mesajele
-
30 aprilie 2012 13:23Moderator
Hi HosseinRad,
Welcome to the MSDN Forum.
If you can achieve this in a LAN, you can just change the IP address to an Internet one.
I hope this will be helpful.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marcat ca răspuns de Mike FengMicrosoft Contingent Staff, Moderator 8 mai 2012 12:57
- Anulare marcare ca răspuns de HosseinRad 9 mai 2012 12:51
-
8 mai 2012 13:00Moderator
Hi Hossein,
Do you have any update?
I have marked my own reply as answer, if you think it provides no help, please feel free to unmark it and follow up this thread.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
9 mai 2012 12:52OK i know this but i i don't know to make algorithm for this job?
-
9 mai 2012 18:22
netsh command line program might let you configure the network interface or you can use a preconfigured xml file to set your settings using netsh because I know i setup wireless internet settings using netsh to automatically create an xml file after i typed in a wireless password and use the settings from the xml file for wireless hardware in windows. Other then netsh i dont know the direct dotnet equivilent. Also, Mike means change to public ip address: one thats not in the 10.?.?.? Range because anything that starts with a 10 is private lan network their are also others that cannot be a public ip address like 127.0.0.1 which is the loopback address for network testing and shouldnt be used as a real ip address Or use nat with dyndns.org configured through your router at your workplace. I know this because dyndns.org public ip prevents me from having to pay an expensive and costly one from dedicated isp.
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://jefferycarlsonblog.blogspot.com/
- Propus ca răspuns de The Thinker 9 mai 2012 18:22
- Editat de The Thinker 9 mai 2012 18:28
- Marcat ca răspuns de Mike FengMicrosoft Contingent Staff, Moderator 15 mai 2012 13:26
-
10 mai 2012 03:28Moderator
Hi Hossein,
I think The thinker makes this more clear.
Thank you, the thinker, for your contribution on this forum.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
10 mai 2012 03:54
How does this relate to VB.net?
Renee
"MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me
-
15 mai 2012 14:22If you use shell or process.start then the netsh command line program is a little related to vb.net but as far as I know you might take a lot longer to find better solution op
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://jefferycarlsonblog.blogspot.com/
-
16 mai 2012 06:18
Thank you 'The Thinker' for your reply.
But, Witch command in netsh can i use for my job?
has netsh a command to change ip address?
-
16 mai 2012 12:11
You can probably export settings to xml file from netsh and then change the ip address their but let me look up reference because sometimes it cant trick you the commands but most of the time their straight forward. I know I can set wireless settings using netsh so let me make sure the proper command with netsh. Heres the command that sets the ip address and can be modified a little to do other ip settings on the lan network connection:
netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric
Heres the article which explains it with an example:</var>
http://support.microsoft.com/kb/257748
I think for wireless I would have to fool around more with it but wired computers you should not have a problem. put dhcp where static is to change to dchp from static if you need to automatically in a vb.net program or vbscript.
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://jefferycarlsonblog.blogspot.com/
- Propus ca răspuns de The Thinker 16 mai 2012 12:15
- Anulare propunere ca răspuns de The Thinker 16 mai 2012 12:15
- Editat de The Thinker 16 mai 2012 12:30