Get the domain name of the URL in Java or IP and port get IP and domain name method one, use regular expressionsPublicstatic string GetIP (string url) {Filter using regular expressions, String re =((HTTP|FTP|HTTPS)://) (([a-za-z0-9._-]+) | ( [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3})) (([a-za-z]{2,6}) | (: [0-9]{1,4})? "; Stringstr ="";Compile reg
After mapping, put the port can not give my IP, but the website cannot access
After mapping, put the port to my local IP, but the extranet cannot access my station.
and use local IP to LAN other computer access can not, in their own computer to lose local
Native IP eth0:192.168.244.150 eth0:0 192.168.244.158
1, based on the same IP different port virtualhost
Edit httpd.conf New Configuration entry
Vim/etc/httpd/conf/httpd.conf
Listen 8080
Listen 8888
In the following new
Documentroot/var/www/html/website1
Documentroot/var/www/html/website2
To create a directory:
Mkdir/var/www/html/website1
Mkdir
Error: "Connect timed out. Verify the connection properties and check that the instance of SQL Server is running on the host, accept TCP/IP connections on this port, and make sure that the firewall does not block TCP connections to this port. "The problem with this connection error.The problem of error. Now, the small part to share the solution to this problem, h
Deny an IP access to a port:1. Creating ACL access control listsACL number XXX2. Establish ACL access control List rules:Rule XX Permit Source 10.70.3.XX 0Allow an IP accessRule XX denyReject Other traffic3. Apply the ACL access control list below the port:Packet-filter XXX OutboundInbound and outbound differences:PC A wants to access PC B, from the A to the E0/1
network segment) {string mac = ""; try {Int32 ldest = inet_addr (HostIP);//Convert IP address from point format to unsigned long integer Int64 macinfo = new Int64 (); Int32 len = 6; The SENDARP function sends an Address Resolution protocol (ARP) request to obtain the physical address corresponding to the specified destination IPv4 address sendarp (ldest, 0, ref macinfo, ref Len); String Tmpmac = Convert.T
How to bind the ip address and port of the local computer to the custom domain name in the hosts file of the windows system is the php integrated environment PhpStudy, and a site is set up:
The system file is written as follows:
#102.54.94.97 rhino.acme.com # source server
#38.25.63.10 x.acme.com # x client host
# Localhost name resolution is handled within DNS itself.
#127.0.0.1 localhost
1
1, tidy up the target IP and corresponding port number to be tested, save as local text file183.61.160.67 10024183.61.160.74 10009119.147.128.173 10006183.61.160.84 10011119.147.107.203 10013183.61.160.67 10015183.61.160.58 10016183.61.160.56 10010183.61.160.74 10018183.61.160.121 10015Youxi12. Installation of tcping ToolsTcping Related parametersTcping, (C) 2003 [email protected]-h hostname hostname (e.g.
Configure the server. xml file in the tomcat/conf directory.
Tomcat directory
C:/program files/Apache Software Foundation/tomcat 6.0/Conf
1. First find port 8080 and change the port to 80.
Note: Set Port = "80" for the connector node ".
2. Configure project directory access.
Note: Set the name of the host node to "localhost". The name is the access m
The error is as follows:
Org. PostgreSQL. util. psqlexception: the connection is rejected. Check the host name and port number and make sure that the postmaster can accept the TCP/IP connection. At Org. postgreSQL. core. v3.connectionfactoryimpl. openconnectionimpl (connectionfactoryimpl. java: 136) at Org. postgreSQL. core. connectionfactory. openconnection (connectionfactory. java: 64) at Org. postgreSQL.
Main configuration server.xml files in tomcat/conf directory
1. Change the default 8080 port to 80 port first
Note: Set the port= "80" of the connector node
2. Configure project Directory Access
Note: Set the host node's name= "localhost", name is to set access mode, with localhost access, this machine directly use localhost access on the line, ot
Linux Web server (ii)1: Build a domain-based virtual hostFirst, set up a DNS server for two sites, and create a new zone, respectively: Www.goole.com and www.baidu.com2) Modify the configuration file3) Modify the data file4) Restart the DNS service5) Build Two websites6: Preparing the Web page7) Open the virtual host configuration file, modify the configuration file8: Add the following content9) Modify the master configuration file to enable the virtual hostvi/usr/local/httpd/conf/httpd.conf, re
asp.net Core 2.0 MVC default port is: Http://localhost:5000/, does not support extranet IP access, this provides two ways to modify:
Mode One: code specifies the modification;
public static Iwebhost Buildwebhost (string[] args) =>
webhost.createdefaultbuilder (args)
. Useurls ("http://*:5000")//If you do not configure the following message, you will not be able to access it directly
Technical department in the eyes of the business unit is the logistics department, the business unit to move to the new buildingThe leader asked to help debug the business personnel's computer, to ensure that these big men to work in Monday, drink tea to open Sina, and then open OA to see.On the hands of a few desktop support brothers, to get 100 more computers, and then look at the desktop support uneven technical ability, so they wrote a small tool, so they can quickly achieveIP address acquis
}) {5}$/ Port authentication :/^ ([0-9]|[ 1-9]\d{1,3}| [1-5]\d{4}|6[0-5]{2}[0-3][0-5]) $/Format is0-65535Divided into several parts to construct:60000-65535;10000-59999;1000-9999;100-999;10-99;0-9;The regular of each part is:6[0-5]{2}[0-3][0-5];[1-5]\d{4}; [1-9]\d{3}; [1-9]\d{2}; [1-9]\d; [0-9]After finishing is:([0-9]|[ 1-9]\d{1,3}| [1-5]\d{4}|6[0-5]{2}[0-3][0-5])Longitude Check:/^[\-\+]? (0?\d{1,2}|0?\d{1,2}\.\d{1,15}|1[0-7]?\d{1}|1[0-7]?\d{1}\.\d{1
View Network\admin\listener.ora file, carefully compare two Oracle the difference between the file, found that the normal Oracle server, Listener.ora file, the following this section of the host shows the machine name, but not the connection is " LocalHost ".LISTENER =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP) (HOST = lggsuper_pc) (PORT = 1521)))Look for the Listener.ora file on the server after I back up the file.Change the file in host = localhost to
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.