well A) this is unsafe as you dont know whether or not you have a static or dynamic ip b) if you did this with a static ip i gurantee you would have to call your isp's tech support. could you enlighten me on to why you would need to do this ? im curious.
EDIT: also it would be impossible to directly call it. you would have to send a request new ip message to your isp's server (if its dynamic) then they randomly assign you a new one that is in their possesion. on windows there is a command to request a new one in the console (some routers have this function too ex. some linksys routers have it.). however you can request a new in person or on the phone from your isp.
isp=internet service provider.
EDIT2:your isp assigns your ip. you can't really control what your ip is. there is as far as i know no functions for this. also shouldn't this be in the hardware /software /networking/ section. i wish i could change my ip to what i want so i could remember it but eh. sorry :(
Anarionist
Junior Poster in Training
61 posts since Jan 2010
Reputation Points: 11
Solved Threads: 2
Skill Endorsements: 0
The IP address of your system cannot be changed by a C/C++ program in most cases. I have to ask, what exactly are you trying to accomplish?
rubberman
Posting Maven
2,569 posts since Mar 2010
Reputation Points: 365
Solved Threads: 303
Skill Endorsements: 51