Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-11-2003, 10:47 PM   #1 (permalink)
tomCollins
Registered User
 
Join Date: Mar 2003
Posts: 2
tomCollins is on a distinguished road
Question Changing my IP address

Hello all...

I am writing a small program in java and I would like to change my IP address using either something native to the language or command line arguments. Can anyone point me in the right direction for either method?
tomCollins is offline   Reply With Quote
Old 03-12-2003, 12:06 AM   #2 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
i'm almost certain you can't change it with java, however you can request a new one using the dos command "ipconfig /renew"...

using:
Code:
Runtime.getRuntime().exec( "cmd.exe \C inpconfig /renew");
if you know how to change it using c then you can use JNI to do it..
__________________
-- bloomberg.
abc123 is offline   Reply With Quote
Old 03-12-2003, 12:11 AM   #3 (permalink)
tomCollins
Registered User
 
Join Date: Mar 2003
Posts: 2
tomCollins is on a distinguished road
Sure, but that's assuming I'll get a new one from a DHCP server. I want to change it to one that I can specify.
tomCollins is offline   Reply With Quote
Old 03-23-2003, 09:54 AM   #4 (permalink)
CaN Opener
^ reads books
 
CaN Opener's Avatar
 
Join Date: Feb 2003
Location: San Fran
Posts: 66
CaN Opener is on a distinguished road
Ip Addies

the first addie will show you how to subnet and cloak your ip so u can still use the current assighned ip then subnet it with an acceptable "offline" ip addie over all VERY not worth it.http://www2.rad.com/networks/1994/ip_addr/tcpip2.htm#doc3 http://www.arin.net
__________________
there's no place like 127.0.0.1
CaN Opener is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAC address iwanttolearnc Platform/API C++ 0 07-27-2004 10:46 PM
sde, changing directory script is running in? Admin PHP 2 06-23-2003 12:02 PM
Changing variable type for edit box : mfc - .net sde Standard C, C++ 0 01-31-2003 09:53 AM


All times are GMT -8. The time now is 01:01 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting