Sep 4, 2001 #1 haux Programmer Joined Apr 11, 2001 Messages 79 Location DZ How to find my IP by programation? In my programme i must have the IP of the local PC. What function can do that? i am using JDK 1.3 on Linux (Red Hat6.2). Thanks for all;-)
How to find my IP by programation? In my programme i must have the IP of the local PC. What function can do that? i am using JDK 1.3 on Linux (Red Hat6.2). Thanks for all;-)
Sep 4, 2001 #2 SnapJack Programmer Joined Aug 6, 2001 Messages 25 Location SG import java.net.*; public class MYIP { public static void main(String args[]) { System.out.println(InetAddress.getLocalHost()); } } Regards SnapJAck Upvote 0 Downvote
import java.net.*; public class MYIP { public static void main(String args[]) { System.out.println(InetAddress.getLocalHost()); } } Regards SnapJAck