/** * Get local IP address * @author YOLANDA * @return */public static string Getlocalipaddress () {String ipAddress = ""; try {Enumerat ion/* here to add a little explanation, because at the beginning of 21, HttpClient was abandoned, Google recommended the use of Urlconnect, where the Ipv4 is also abandoned, in order to be compatible with later versions, I httpclient some of the source code directly to the
Public Static String Getlocalip (){ Try { String Hostname = DNS. gethostname (); // Get the Host Name Iphostentry ipentry = DNS. gethostentry (hostname ); For ( Int I = 0 ; I { // Select an IPv4 IP address from the IP address list. // Addressfamily. Internetwork indicates that the IP address is IPv4, // Addressfamily. internetworkv6 indicates that thi
Public static string getlocalip (){Try{String hostname = DNS. gethostname (); // obtain the host name.Iphostentry ipentry = DNS. gethostentry (hostname );For (INT I = 0; I {// Filter IPv4 IP addresses from the IP address list// Addressfamily. Internetwork indicates that the IP address is IPv4,// Addressfamily. internetworkv6 indicates that the address is of the
Local Site Address:
A restricted unicast address, which cannot be enabled by default as a local link address, that must be manually specified.
There is a similar IPV4 private address
mentioned aboveThe system will automatically assign a link-local (link-local) address after Windows and Linux install IPv6That is, Ifconfig-a saw a line "Inet6 addr:fe80::20c:29ff:fed7:4214/64 scope:link", the yellow part is the IPv6
Vista's new TCP/IP network protocol stack fully supports the IPv6 format. Do you want to know the IPv6 format of the local address 127.0.0.1? Ping from Windows Vista tells you that many users may feel that the network speed of Windows Vista is not as high as that of Windows XP. In fact, this is because of the number of
This paper introduces a new generation of Tp-link routers tplogin.cn login can not open the solution, in the next generation of Tp-link routers, no longer use the 192.168.1.1 management address, but use the tplogin.cn domain name to log into the router's management interface
Original: Sina Weibo short link address generation tool Shorturlgenerator.javaSource code: Http://www.zuidaima.com/share/1550463378934784.htmImitation Sina Weibo short link address generation toolShorturlgenerator.javaString Slong
First install "Anything to QRcode" in the Chrome online app store. After installation, a QR code icon is generated on the right side of the address bar of the Chrome browser. As shown in the following figure:QR code generated for the current website:Open a webpage and click the QR code icon on the right of the address bar of the Chrome browser to generate the QR code of the current webpage address
wps Add a way to link local file addresses:
In an article, find the text you need to set up a hyperlink, generally there will be authors, corporate information, or personal micro-blog, there are some official websites, etc., will be made into a hyperlink form, to the back of the hyperlink to bring traffic. Below I will simply excerpt the network an article to explain
Right-click to select the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.