NetworkInterface ni = NetworkInterface.getByInetAddress(address) Īb+=aa.substring(a, b)+ ((i < mac.length - 1) ? " -" : " ") InetAddress address = InetAddress.getLocalHost() InetAddress localaddr = InetAddress.getLocalHost() URLConnection conn = url.openConnection () īufferedReader rd = new BufferedReader( new InputStreamReader(conn.getInputStream())) If (requestParameters != null & requestParameters.length () > 0) Public static String sendGetRequest( String endpoint, String requestParameters) ndGetRequest(tracerserver, requestParameters) ("Ip address: "+machine.ipaddr()) // ("Mac Address: "+machine.macAddr()) String requestParameters = " ip="+machine.ipaddr()+ " &mac="+machine.macAddr()+ " &point=3.223,2.93" String tracerserver= " " // tracker server address int timeRange=1 // in minutes Public static void main( String args) throws InterruptedException
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |