remote-host

Tomcat 8 RemoteHostValve not working

笑着哭i 提交于 2019-12-24 06:50:03
问题 The access to my server should be limited to some Remote hosts, and I want to allow Uptimerobot to monitor my server. Currently uptimerobot gets always a 403 Forbidden. I added Server.xml looks like this: <Server .........> <Service name="Catalina"> <Engine> <Value className="org.apache.catalina.valves.RemoteHostValve" allow=".*\.uptimerobot\.com" /> </Engine> </Service> To match all hosts in this list UptimeRobot Whitelist But after restarting server nothing changed, still 403. I also tried

Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java

拈花ヽ惹草 提交于 2019-12-21 07:24:28
问题 I have the following exception when running Java app for MongoDB: [localhost:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java Call stack is follows: com.mongodb.MongoSocketOpenException: Exception opening socket at com.mongodb.connection.SocketStream.open(SocketStream.java:63) ~[mongodb-driver-core-3.0.4.jar:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114)

How can I establish a secure channel for SSL/TLS from a handheld device?

不问归期 提交于 2019-12-18 05:18:09
问题 I am trying to call a REST method from a handheld device (Windows CE / Compact framework) with this code: public static HttpWebRequest SendHTTPRequestNoCredentials(string uri, HttpMethods method, string data, string contentType) { ExceptionLoggingService.Instance.WriteLog("Reached fileXferREST.SendHTTPRequestNoCredentials"); WebRequest request = null; try { request = WebRequest.Create(uri); request.Method = Enum.ToObject(typeof(HttpMethods), method).ToString(); request.ContentType =

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host in C#

一个人想着一个人 提交于 2019-12-07 11:36:14
问题 I have a code where I am sending the URL request and receiving the response and storing it as a String as public String GenerateXML(String q)// Here 'q' is the URL { // Generating the XML file for reference // Getting the response in XML format from the URL Debug.WriteLine("The Http URL after URL encoding :" + q); try { Uri signs1 = new Uri(q); //Debug.WriteLine("The Requested URL for getting the XML data :" + re); WebRequest request1 = WebRequest.Create(signs1); HttpWebResponse response1 =

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host in C#

我与影子孤独终老i 提交于 2019-12-05 12:50:45
I have a code where I am sending the URL request and receiving the response and storing it as a String as public String GenerateXML(String q)// Here 'q' is the URL { // Generating the XML file for reference // Getting the response in XML format from the URL Debug.WriteLine("The Http URL after URL encoding :" + q); try { Uri signs1 = new Uri(q); //Debug.WriteLine("The Requested URL for getting the XML data :" + re); WebRequest request1 = WebRequest.Create(signs1); HttpWebResponse response1 = (HttpWebResponse)request1.GetResponse(); //HttpWebResponse response1 = (HttpWebResponse)request1

Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java

半腔热情 提交于 2019-12-04 00:44:39
I have the following exception when running Java app for MongoDB: [localhost:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server localhost:27017 while accessing MongoDB with Java Call stack is follows: com.mongodb.MongoSocketOpenException: Exception opening socket at com.mongodb.connection.SocketStream.open(SocketStream.java:63) ~[mongodb-driver-core-3.0.4.jar:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114) ~[mongodb-driver-core-3.0.4.jar:na] at com.mongodb.connection.DefaultServerMonitor

How can I establish a secure channel for SSL/TLS from a handheld device?

可紊 提交于 2019-11-29 08:13:20
I am trying to call a REST method from a handheld device (Windows CE / Compact framework) with this code: public static HttpWebRequest SendHTTPRequestNoCredentials(string uri, HttpMethods method, string data, string contentType) { ExceptionLoggingService.Instance.WriteLog("Reached fileXferREST.SendHTTPRequestNoCredentials"); WebRequest request = null; try { request = WebRequest.Create(uri); request.Method = Enum.ToObject(typeof(HttpMethods), method).ToString(); request.ContentType = contentType; ((HttpWebRequest)request).Accept = contentType; ((HttpWebRequest)request).KeepAlive = false; (