Network connections

  • Jovaras
  • Born
  • Born
  • Jovaras
  • Posts: 4

Post 3+ Months Ago

Hi,
I'm changing my gateway ip's very often( http://img104.imageshack.us/img104/5983/netwoerkli0.jpg )
Control panel ->Network connections->Local area connection->Properties->Internet protocol(TCP/IP) Properties.
I'm switching often from no ip's(automatically detect) to numbers you see in picture.
I want to access faster, or change numbers automatically with some script. Is that possible?
Now I'm using simple script(as .bat file), which doesnt help alot:
Code: [ Select ]
cmdow @ /hid
ncpa.cpl
EXIT
  1. cmdow @ /hid
  2. ncpa.cpl
  3. EXIT

Please help me to do this way faster, because I'm tired from going to network connections and enterting numbers every time.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ace5p1d0r
  • Expert
  • Expert
  • User avatar
  • Posts: 630
  • Loc: UK

Post 3+ Months Ago

So why exactly do you keep switching? Just stick with one..
  • Jovaras
  • Born
  • Born
  • Jovaras
  • Posts: 4

Post 3+ Months Ago

Because I need.
One internet is 60KB/s, another 1.4MB/s. But the faster one has ports(torrent,ftp,irc) filtered by provider.
  • ace5p1d0r
  • Expert
  • Expert
  • User avatar
  • Posts: 630
  • Loc: UK

Post 3+ Months Ago

I see. Well I doubt there is an application that will allow you to do that.
  • jflynn
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2305
  • Loc: Baker City, Oregon

Post 3+ Months Ago

ace5p1d0r wrote:
I see. Well I doubt there is an application that will allow you to do that.


Why so negative? If your looking for a script, you should ask this question in the scipting forum.
  • ace5p1d0r
  • Expert
  • Expert
  • User avatar
  • Posts: 630
  • Loc: UK

Post 3+ Months Ago

I'm not trying to be negative, but I am being realistic. Perhaps someone would be kind enough to make one, but as I say I doubt there is one existing.
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Posts: 6807
  • Loc: Martinsburg, WV

Post 3+ Months Ago

You can change your TCP/IP settings through the command line using the netsh command so it should be possible to script.

But the reasons for him doing this just sounds dubious so that is about all the help I am going to provide.
  • Jovaras
  • Born
  • Born
  • Jovaras
  • Posts: 4

Post 3+ Months Ago

Ah I made script by my own:
Code: [ Select ]
cmdow @ /hid
netsh interface ip set address name="Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.254 1
netsh interface ip set dns "Local Area Connection" static 212.59.0.1
EXIT
  1. cmdow @ /hid
  2. netsh interface ip set address name="Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.254 1
  3. netsh interface ip set dns "Local Area Connection" static 212.59.0.1
  4. EXIT


And the one that sets to automatic:
Code: [ Select ]
cmdow @ /hid
netsh interface ip set address "Local Area Connection" dhcp

netsh interface ip set dns "Local Area Connection" dhcp

EXIT
  1. cmdow @ /hid
  2. netsh interface ip set address "Local Area Connection" dhcp
  3. netsh interface ip set dns "Local Area Connection" dhcp
  4. EXIT

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 103 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.