AA

Hi guys,
is there any way to change IP address of computer from Command prompt.

I use WinXP as OS and i would like to know if i can chage IP from Command prompt (in both cases - Static or automatic)

add a comment
0

27 Answers

  • Votes
  • Oldest
  • Latest
ST

run>
cmd>
type this command>
ipconfig /release
ipconfig /flush(is it correct?)
ipconfig /renew

add a comment
0
LI

You're going to get a new ip if your isp uses dhcp dynamic allocation: well at least for me

Mine does and i can get a new ip without trying too hard, All i do is go to windows network settings and put a different ip and save it then go back and click "obtain address automatically and within a minute i have a new ip

add a comment
0
ES

i type in cmd but get an error u know what the problem is?

grtz espritje

add a comment
0
AL

"Modem" you mean? of course no!

add a comment
0
BL

I thought you can change your ip if you are hooked into the modum?

add a comment
0
JE

hi all , how can i change only my ip address without changing the gateway using netsh..

add a comment
0
AL

Thanks a lot. I find that IP address scary! THAT shouldn't be permitted. I knew the IP was not enough to appear in a different country,

I have installed Tor, but it is disabled, I would need time to learn how to use it, as well as yours. Which I don't now, and I feel very frustrated.

add a comment
0
BO

thank you

add a comment
0
TO

To Allwyna,

You don't just need to change your IP -- you need to change it to a different location than your own. The only real way to do this is through the use of proxy services.

A good one is at: http://www.iprivacytools.com (I know they have U.S. based servers, which is what you mentioned).

šŸ™‚

add a comment
0
AL

Hi,

I read all your posts, but I am not very familiar with some of the commands.

I want to change my IP address because I live in Mexico and I am forbidden to acess a lot of American sites. I don't think my purpose is illegal (maybe theirs is! šŸ¤£ )

Could you tell me about that NETSH thing? I also saw a way with a RUN command (ipconfig release) that changes it, but I am not sure. I work in a small network (2 computers) through a modem. I use Win XP and browse with Firefox

Thank you very much

add a comment
0
HI

Your external IP is set by your ISP and you cannot change it.

Until recently i used putty and ssh tunnel, but as you know ssh can not do UDP traffic tunneling that is why i've been searching other solution for myself and i found it. I recommend you SmartHide by Arovax http://www.smarthide.com - one click of a mouse and no settings headache šŸ™‚ You push a button and a tcp/udp tunnel is created and you don't need setup the software. All the programs work through tunnel... p2p, email, web surfing, skype, adult sites, online games and casino.

Hide and change IP!

add a comment
0
BO

Your external IP is set by your ISP and you cannot change it. That is the IP craigslist is seeing.

You could actually use an ip changer service like http://www.iprivacytools.com to change your "external ip", which it does by routing your traffic so that your ip simply "appears" differently to websites.

To the guy that wanted to change your ip address to flag on craigslist: if the posting you wish to remove is a bad one, then others will flag it too, and it will get removed eventually. That's how the system works.

add a comment
0
MB

There's no way to effectively change it from a command prompt. You could use the ipconfig release and renew commands, but chances are you're just going to get your old IP address back, especially if you are behind a router or static IP.

Why would you want to do this anyway out of curiosity? The answer might help you get better ideas.

add a comment
0
PR

Hi šŸ™‚ . I think this info also will be usefull for you šŸ™‚ . Show that you can change dns server addresses from CMD as well as you can change an IP address šŸ™‚ . Show your boss him you are a cute guy šŸ™‚ .

To change DNS server addresses from cmd type next:

  1. netsh
  2. interface ip set dns "local area connection" static <IP address of a DNS server>

You can even add other DNS servers šŸ™‚ from cmd.
To do this type next:

  1. netsh
  2. interface ip add dns "local area connection" <IP address of a DNS server>

Screenshots:

add a comment
0
CH

Here is an example if you want to change IP to 192.168.142.102, subnet mask to 255.255.255.0 and gataway to 192.168.142.1
netsh interface ip set address "Local Area Connection" static 192.168.142.102 255.255.255.0 192.168.142.1 2

Let me know if you have question

Kevin

add a comment
0
LU

Which IP are you trying to change? You can not change the IP given to you by your ISP. You are probably tring to set an IP on an adapter that has already received an address from DHCP - that won't work.

add a comment
0

Hi all,

I have used the netsh command menssioned before. I also provide the proper ip address, mask and gateway then also got the following message :

"The syntax supplied for this command is not valid. Check help for the correct syntax.

Usage: set address[name]<string>[[source=]dhcp| static [addr=]IP address[mask=]IP subnet mask][[geteway=]<IP Address>|none [gwmetric=]integer]"

But when I used 'set address' command it work properly but the ip address doesn't changed.

Can any one help me to change ip address from command line. Thanks in advance.

add a comment
0
GR

We are not going to help you get around craiglists website set-up. If you have an issue contact the admins over there and see if they would be willing to change the rule.

By the way, this is on the subject of changing your LAN ip. Your external IP is set by your ISP and you cannot change it. That is the IP craigslist is seeing.

add a comment
0
ON

i m confused. I m trying to change my ip address to flag a post on craigslist.org because they only allow 3 flags peron ip address so I m trying to get around that.

add a comment
0
MI

Very nice šŸ˜‰

add a comment
0
UN

great info DuckIT šŸ‘

I learned something new today! yay! šŸ™Œ

add a comment
0
MB

I see. That makes more sense now. Looks like DuckIT provided the answer.

add a comment
0
DI

Hi

The NETSH command does this. This is its helpfile:

Commands in this context:
.. - Goes up one context level.
? - Displays a list of commands.
abort - Discards changes made while in offline mode.
add - Adds a configuration entry to a list of entries.
alias - Adds an alias.
bridge - Changes to the netsh bridge' context. bye - Exits the program. commit - Commits changes made while in offline mode. delete - Deletes a configuration entry from a list of entries. diag - Changes to the netsh diag' context.
dump - Displays a configuration script.
exec - Runs a script file.
exit - Exits the program.
firewall - Changes to the netsh firewall' context. help - Displays a list of commands. interface - Changes to the netsh interface' context.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the netsh ras' context. routing - Changes to the netsh routing' context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.

The following sub-contexts are available:
bridge diag firewall interface ras routing

Works in a batch file too. I used to use this all the time but I lost all my batch files šŸ˜¢ .

Examples:

netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

to set a static address or

netsh interface ip set address "Local Area Connection" dhcp

to set it to DHCP. Its a great command to have a link to on the desktop if you frequently move between static & DHCP networks etc. I used to use it a lot when i was configuring firewalls and needed to quickly switch my machine between outside & inside subnets.

Hope that helps!

S

add a comment
0
AA

Hi thanks for reply but changeing IP from command prompt was just a chanllange for me from my senior.

i work in (1200 + comp. , 15 servers, 5 routers, 35 switches) network in india.

it is just 6th month for me in networking. but i had spend those 6 months like 3 years (around 16 hours a day)

anyway thanks for reply.

avi

add a comment
0
KP

Cmd is great, but I recommend you to use some tool for that. I'm using Maxidix IP Switcher for example, it is the simplest way for fast switching between IP settings. I that the other program Wifi Suite can switch settings even automatically when you connecting to wireless network.

add a comment
0