View Full Version : Refresh ip adress?
lpshean
Oct 22, 2006, 06:04 AM
Hiya,
Was wondering if there's a way to refresh my ip address using terminal since the ISP im using has a dynamic ip (apprently).
Tried to unplug the router etc, but the ip address stayed the same. I know using the PC, u could do it by using dos commands like;
ipconfig /renew
ipconfig /release
ipconfig /flushdns
But... im not sure how to do it using a mac. Help? :confused:
emptyCup
Oct 22, 2006, 06:28 AM
What's wrong with the one you have, and what makes you think the next one would be better? Are you on dial-up?
lpshean
Oct 22, 2006, 06:34 AM
Well, its basically for security purposes i guess and also its *possibly* a workaround for a problem thats been bugging me for a long time.
That much i'll divulge into. ;)
tominated
Oct 22, 2006, 06:45 AM
i would like to know how to do this to because my brother got me banned from the best halo servers:mad:
Razorhog
Oct 22, 2006, 07:48 AM
I'd try unplugging the router before bed. Let it sit over night and plug it back in when you wake up.
tominated
Oct 22, 2006, 05:52 PM
ok, i'll try that tonight
londonbizzare
Jan 10, 2008, 02:51 PM
Does it matter why he wants to change his IP? The question has not been answered except for unplugging your modem. The Question is what is the Terminal command for refreshing an IP. Only respond if you have the answer.
Aaron
GregE
Jan 10, 2008, 03:23 PM
I did a little Googling and it looks like what you are looking for is the 'ifconfig' command. What I found also says to read 'man ifconfig' for details.
Then I found where somebody said the command for renew is
sudo ifconfig en0 down
and release is
sudo ifconfig en0 down;sudo ifconfig en0 up
Here is the link (http://forums.macosxhints.com/archive/index.php/t-50887.html) I found this.
Hope that helps (and it's correct :confused:)
(Just realized this thread was over a year old. Why do people post to really old threads like that? ughhhhh :mad:)
robbieduncan
Jan 10, 2008, 03:25 PM
That will renew the IP address (potentially, it might get the same one) of the computer you type it on: it will have no effect on the external IP address that the router has. This is the address that all websites/XBox live etc sees so that's what you need to refresh. The easiest way to do this is to unplug the router for a while as suggested above. There may be other router specific ways of doing it, but no generic way.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.