# Is it possible to change TCP/IP settings of your computer us

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-change-tcp-ip-settings-of-your-computer-us/114982>\
**Category:** Ruby\
**Created:** [September 19, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-change-tcp-ip-settings-of-your-computer-us/114982 "2007-09-19T13:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/f475e1/32.png) [@zoat](https://www.ruby-forum.com/u/zoat)\
**Post date:** [September 19, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-change-tcp-ip-settings-of-your-computer-us/114982/1 "2007-09-19T13:45:46Z")

</div>

Hi,  
I would like to have easier and fast way to change the TCP/IP settings  
of my computer.  
As my job requires in order to connect to each customer network. For  
example to change it to a specified IP/Gateway/Subnet Mask etc.  
I have seem a VB script which does that.  
Is that possible to do a script in Ruby to do that? Does exist any gem  
in order to help me?

Kind Regards

Roberto Nogueira

---

<div class="post-metadata">

**Author:** ![zoat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/f475e1/32.png) [@zoat](https://www.ruby-forum.com/u/zoat)\
**Post date:** [September 19, 2007, 1:55pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-change-tcp-ip-settings-of-your-computer-us/114982/2 "2007-09-19T13:55:48Z")

</div>

On 9/19/07, zoat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Roberto Nogueira

if you’re on windows, you can use WMI through Win32OLE, or netsh via  
commandline/piping config

J.
