This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import (java.net NetworkInterface Inet4Address)) | |
(defn ip-filter [inet] | |
(and (.isUp inet) | |
(not (.isVirtual inet)) | |
(not (.isLoopback inet)))) | |
(defn ip-extract [netinf] | |
(let [inets (enumeration-seq (.getInetAddresses netinf))] | |
(map #(vector (.getHostAddress %1) %2) (filter #(instance? Inet4Address %) inets ) (repeat (.getName netinf))))) | |
(defn ips [] | |
(let [ifc (NetworkInterface/getNetworkInterfaces)] | |
(mapcat ip-extract (filter ip-filter (enumeration-seq ifc))))) |
3 comments:
IP addresses are either classified as dynamic or static.Static IP addresses will permanently stay the same. They offer a unadorned and efficient way pro distant notebook systems and Internet service providers to get on to friend with you.Dynamic IP addresses can be altered.
For more this information view my friend website what is my ip
Nice information. I had checked my External ip address using this site IP-Details.com
To protect yourself on the internet kindly check What is My IP Tools for your security.
Post a Comment