Monday, December 12, 2011

How to change IP Address with Command Prompt?

Does it work if I change my IP Address by using ';Command Prompt'; and typing in ';ipconfig /renew';? (My computer is a laptop (Window 7).. I think the type of my IP is LAN and I have a router)



Because once I typed in ';ipconfig /renew'; it says here: 'No operation can be performed on Local Area Connection while it has its media disconnected'. So I wonder why it doesn't work or is there any other way I can change my IP?How to change IP Address with Command Prompt?
OK, you have a total misunderstanding of how IP addresses WORK. There are two kinds, static and dynamic. If you have a static address, your ISP assigned it to you from their pool of assigned addresses to THEM. You can NOT change a static address. If you DO, you can no linger connect to your ISP. You assign a static address through manipulating the TCP/IP stack on your computer. You change the address and restart and the address changes. There is NO way to do this from the command line because the stack has to be operating to do anything with an IP address. Now for the dynamic IP address. Your ISP has a pool of addresses assigned to them. They run a Domain Host Control Protocol (DHCP) Server which has control of the addresses in the pool. When you connect to your ISP, your computer requests an address from the DHCP sever and is assigned one for the session. That is what ';let the server configure'; option for an IP address MEANS. This address expires after a certain amount of time, usually a day, but the limit is arbitrary and set by the ISP. When it expires, your computer issues a renewal request, and the DHCP server extends the expiration date.



Here is an example of what you will see if you type IPCONFIG /ALL on the command line:



-=+=-

Windows 98 IP Configuration



Host Name . . . . . . . . . : k0v6t0

DNS Servers . . . . . . . . : 208.67.222.222

208.67.220.220

Node Type . . . . . . . . . : Broadcast

NetBIOS Scope ID. . . . . . :

IP Routing Enabled. . . . . : No

WINS Proxy Enabled. . . . . : No

NetBIOS Resolution Uses DNS : Yes



0 Ethernet adapter :



Description . . . . . . . . : PPP Adapter.

Physical Address. . . . . . : 44-45-53-54-00-00

DHCP Enabled. . . . . . . . : Yes

IP Address. . . . . . . . . : 0.0.0.0

Subnet Mask . . . . . . . . : 0.0.0.0

Default Gateway . . . . . . :

DHCP Server . . . . . . . . : 255.255.255.255

Primary WINS Server . . . . :

Secondary WINS Server . . . :

Lease Obtained. . . . . . . :

Lease Expires . . . . . . . :



1 Ethernet adapter :



Description . . . . . . . . : Microsoft TV/Video Connection

Physical Address. . . . . . : 00-00-00-00-00-00

DHCP Enabled. . . . . . . . : No

IP Address. . . . . . . . . : 3.0.0.2

Subnet Mask . . . . . . . . : 255.255.255.255

Default Gateway . . . . . . :

Primary WINS Server . . . . :

Secondary WINS Server . . . :

Lease Obtained. . . . . . . :

Lease Expires . . . . . . . :



2 Ethernet adapter :



Description . . . . . . . . : Novell 2000 Adapter.

Physical Address. . . . . . : 00-A0-0C-4F-BB-A7

DHCP Enabled. . . . . . . . : Yes

IP Address. . . . . . . . . : 192.168.0.10

Subnet Mask . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . : 192.168.0.1

DHCP Server . . . . . . . . : 192.168.0.1

Primary WINS Server . . . . :

Secondary WINS Server . . . :

Lease Obtained. . . . . . . : 12 24 09 14:48:06

Lease Expires . . . . . . . : 12 25 09 14:48:06

-=+=-

Note the last 2 lines. As I write this, my local time is about 2100, which meant I either logged on at 1448 OR I renewed my lease to 192.168.0.10. Note it only lasts for a day. I excised my ISP data. You have no need to know my present ISP and the address I have that everyone else can see. Note my DHCP server is my own LAN server, which is actually my DSL appliance. If I connected directly via modem, rather than through the LAN router and firewall, you would see the dynamic address assigned by my ISP. As it is, since I have a LAN, I have to open the router in my DSL appliance to find the address I was assigned when I logged in last to my ISP. When you typed in IPCONFIC /RENEW, all you did was trigger a renewal request for your existing address. The only way to change your IP address when it is dynamic is to break the connection for a period of time. Unplug the phone line or cable from the network appliance. Like unplugging an ethernet wire from a hub, your connection does NOT cease to exist when physically separated, but rather goes on hold for a period of time, which is why you can unplug, replug at a later time and resume exactly where you left off. There is a time delay before you lose the lease and the address reverts back into the pool. For me, that would happen tomorrow at 1448, sooner if my ISP has an inactivity limit. AOL, for example, expires the lease at the expiration time or 15 minutes of inactivity, whichever happens first provided it does not receive a renewal request. THEN, if the address reverts to the pool, you MAY get another, but only if it was reassigned and in use in the meantime while you were not connected. When you reconnect, your computer simply issues a renewal request for the old address you had. If it is not in use, you will likely get the same address back. Your ISP knows the MAC address of your network adapter (of the cable or DSL appliance if you have one) and it uses this as an identifier of you, unique everywhere, to keep you separate from everyone else logging in, in spite of the fact your IP address can change every time you log in. The DHCP server keeps track of what address you had last time and will give it back if it is available.



Do you understand now, why it is what you tried failed as it did?



Edit: one last thing: public and private that someone else referred to. Private is a misnomer. Certain addresses are ';non-transportable'; by network routers. In essence, the propagation limit is set to 1, which is how many hops before they get dropped for traveling too far. 192.168.X.X and 10.X.X.X are examples. Packets with that address range never leave my LAN but are translated by my local router to the dynamic address assigned by my ISP. It is NOT private, just excluded as a class by the router from passing through.How to change IP Address with Command Prompt?
ipconfig /renew can get a new IP, but if the computer was on the router recently it usually picks up the same IP it had before. If you do ';ipconfig /release'; then ';ipconfig /renew'; that should do it. To SPECIFY an ip address go to

start%26gt; control panel %26gt; network and sharing center.

Choose ';change adapter settings'; from the left side.

In there you should see your network adapter(s).

Right click the one you wish to modify and hit properties.

In the list you should see an entry like ';Internet Protocol v4'; (or similar). Click to highlight, and click properties.



Here, you need to know what to fill in here, but that is the procedure in which to CHOOSE an IP address. What you would fill in here heavily depends on your router.
You can certainly try this as much as you want - you'll just either get the same or another IP address from your router (if at home) or from your DHCP server (if at work).



There are 2 types of IP address. Public and private. You can use whatever you like as private IP addresses (historically they are certain ranges like 10.x.x.x, 192.x.x.x etc, though you can use any as they'll never see the outside world...)



Your ISP gives you a specific public IP address. Sometimes you may buy a particular static address or range of addresses if you intend hosting a website etc.



Your router gets it's public IP address (the one that allows it to communicate with the internet) from your ISP.



Your router then probably uses NAT (Network address translation) to allow as many devices as you have to communicate, like your PCs, Wiis, PS3s, Xbox's etc. on the internet through this one public address (the router does the clever bits in between).



Renewing your IP address from your PC is just renewing from the DHCP of your own router private IP address - the IP address means nothing on the internet - you'll always be the IP your ISP has allocated for you..
If you mean your external IP (versus your private network IP), then that IP is assigned by your Internet Service Provider.



Some ISPs will give you a new IP if you unplug the modem for a few minutes and then plug it back in, but it really depends on what rules the ISP has set-up. Some ISPs recycle IP addresses on an hourly basis, others use static addresses so they never change.
Gibson Research Corporation has interesting information about IP addresses, read this article about ';The text below might uniquely identify you on the Internet';



https://www.grc.com/x/ne.dll?bh0bkyd2



Scroll down past the ';Proceed'; button to read the article.



Home page

https://www.grc.com/default.htm



Wikipedia article:

http://en.wikipedia.org/wiki/Gibson_Rese



TonyRB

Friday, December 25, 2009
Try to follow tutorial from http://www.ipaddresslocation.org/change- to change IP address.
ipconfig /renew
  • girly myspace
  • java
  • No comments:

    Post a Comment