, enter/sbin/ifconfig to check whether the setting is successful. If it succeeds, you can see the following in the displayed result:
Eth0 Link encap: Ethernet HWaddr 00: 18: FE: 28: 1C: AA
Inet addr: "ip address" Bcast: broadcast address Mask: Subnet Mask
Inet6 addr: fe80 :: 218: feff: fe28: 1caa/64 Scope: Link
Up bro
Code for obtaining the mobile phone IP Address:
public static String getLocalIpAddress(){try{ for (Enumeration
However, in 4.0, an IP address similar to fe80: b607: f9ff: fee5: ipve is displayed. This is an IPV6 address. We need t
To get the phone's IP address code:
public static String getlocalipaddress () {
try{for
(enumeration
But in 4.0 there will be a similar fe80::b607:f9ff:fee5:487e IP address, this is the address of IPV6, we need to get
the Environment[Root@centos ~]# Cat/etc/redhat-releaseCentOS Linux release 7.0.1406 (Core)[Root@centos ~]# Uname-aLinux localhost.localdomain 3.10.0-123.4.2.el7.x86_64 #1 SMP Mon June 16:09:14 UTC x86_64 x86_64 x86_64 gnu/linux2.3 Installing a common package[Root@centos ~]# yum-y install vim wget lsof gcc gcc-c++ net-tools bind-utils bzip23. System settings3.1 Time settingsCurrent Time View[Root@centos ~]# DateTime setting[Root@centos ~]# date-s "2014-7-11 12:00"3.2 Host name settingsCurrent ho
Not much to say, directly on the code.Package Com.ckw.test;import Java.io.BufferedReader; Import java.io.IOException; Import Java.io.inputstreamreader;import Java.util.*;import Java.util.map.entry;public class TestOfSubNetMask {Map The result is:---------------------------------------------------------------Windows IP Configuration host name ............. : DADI primary DNS suffix ........... : node type ............: hybrid
The local machine is win7, the IP address is manually configured for the ubuntu system on the Virtual Machine. The local machine is ubuntu through wireless network, and the virtual machine connection mode is bridged (bridging mode ). 1. Run the command ipconfig/all in cmd on the local machine. The following figure shows the part of the command: Wireless LAN adapter wireless network connection: connection to
today to help a netizen solved a problem about the port, their company developed a set of software needs to move to another server above, and then all set up and found that the login software error, Check that the walk 192.168.1.1:8080 not pass, try to modify into localhost:8080 can log on locally, but this remote cannot access. Check that the system has shut down the firewall, there is no anti-virus software and other port restrictions, Telnet attempt to confirm that 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.