Sep 4, 2001 #1 haux Programmer Apr 11, 2001 79 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 Aug 6, 2001 25 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