I'm trying to debug a machine that is located in China (very far from here) and the connection is very slow. The timeout of intellij remote debugger is short and therefore I'm getting Unable to open debugger port : java.net.ConnectException "Connection timed out: "
And I can't debug. Is it possible to increase the connection timeout? and how?
Try add -Djava.net.connectiontimeout=<seconds> to <IDEA_install_path>/bin/idea.vmoptions and restart IDEA.
But firstly ensure that port is opened and host is accessible, for example you can try to connect with telnet/another program.
Related
Problem Description
When I was using Node.js and generated the file package.jons, I found there's a warning at the start:
Problems loading reference 'https://json.schemastore.org/package': Unable to load schema from 'https://json.schemastore.org/package': Failed to establish a socket connection to proxies: ["SOCKS5 127.0.0.1:1090","SOCKS 127.0.0.1:1090"].
Possible Reason
Then I searched the error message Failed to establish a socket connection to proxies, and found maybe it's a wsl2 proxy problem according to this github reply.
For more precise reason, I searched the VSCode proxy document metioned by the reply, and found maybe it's caused by wrong proxy setting.
Ways to try
According to the VSCode document, I want to try the setting of "Manual proxy address". But I encountered two problems:
I don't know how to run the command line mentioned in the VSCode document: --proxy-server=<scheme>=<uri>[:<port>][;...] | <uri>[:<port>] | "direct://".
I don't know where to find the file /etc/resolv.conf mentioned in the github reply to get the wsl server ip.
When I switch my VPN into global mode and restart VSCode, the warning disappear.
I am getting the error as 'ORA-03135: connection lost contact' from my C# code while making connection to oracle DB. The same job works just fine from our test server. But it failed with ORA-03135: connection lost contact error from prod server.
The C# code use ODAC to connect to oracle DB.
Appreciate your inputs.
Thank you
This error is most likely caused by a firewall blocking the connection request. Check for any firewalls in your network or on the database server and make sure your access rules are configured correctly.
Also check this link for more troubleshooting tips: http://www.dba-oracle.com/t_ora_03135_connection_lost_contact.htm
ORA-03135: connection lost contact tips
What can I do to avoid the ORA-03135 error?
Answer: The oerr utility shows this for the ORA-03135 error:
ORA-03135: connection lost contact
Cause:
1) Server unexpectedly terminated or was forced to terminate.
2) Server timed out the connection.
Action:
1) Check if the server session was terminated.
2) Check if the timeout parameters are set properly in
sqlnet.ora.
The ORA-03135 error is common when connecting remotely when a firewall
terminates the connection.
One solution for the ORA-03135 error is to increase the value of the
sqlnet.ora expire_time parameter in the sqlnet.ora file or to check
for a expire parameter in a SQL*Plus profile.
To diagnose the ORA-03135 error, start by checking to see if the OS
PID still exists, using the "ps -ef | grep" syntax.
Check to see if there is a Network Address Translation (NAT) between
the client and server
In Windows, check to see if a Windows firewall is checking for your
local connections.
...
Also, setting the parameters sqlnet.inbound_connect_timeout and
inbound_connect_timeout_listenername to 0 can stop the ORA-03135
error.
On a Windows Server 2016 Standard, 64-bit, x64-based server, I try to connect to a specific port (1807) to access a third party application using Eclipse. However, an as yet unidentified process is closing it.
How do I find out what?
There seems to be lots of info about how to close ports on SO, but can't find anything about how to monitor what is closing it.
According to a co-worker who looks after the firewall the port is open. Although I also tried running Eclipse on the server and connection to the port inside the firewall. Tried connecting via a testing tool and get "The underlying connection was closed. The connection was closed unexpectedly."
The message connecting via Eclipse is "Cannot join host http://myHost:1807 - Possible reasons could be the host is temporarily unavailable, DNS cannot resolve this name. The port is not open to the outside. The host name is mispelt. The host response has timed out. The host has multiple network cards but one of them is not responding. The newtwork infrastructure does not allow the access to this host".
Eclipse connects via another port OK.
Please let me know if you have any ideas about how to solve this.
You can get the PID of port closing program by netstat -a -n -o. Then by using
tasklist /fi "pid eq 6368" you can find the name of program. 6368 is the pid of program that's blocking the port
I'm creating a webapp that support offline mode using AppCache.
When I'm online, it connect fine. If the connection is dropped and regain, it reconnect correctly.
My problem is when I'm opening my webapp when disconnected and then a connect to the internet, Socket.IO doesn't connect. It just doesn't try to connect.
I analysed a little bit the code, and it seen that it need a first valid connection in order to try to reconnect. If the first connection fail, it will permanently fail.
Is there something I miss?
So what stops you to have a global variable isConnectionStartedOnce, initialize it on the first successful connection. And on re connection event if it is initiaziled - reconnect, otherwise connect from scratch.
I'm using Inet1.Ocx in a vb6 project to connect to a remote host.
I was wondering, is there anything to do to disconnect from server while still executing ?
i will explain more,
i write the host name and user name and password and hit (Connect) button but i find out that i misspelled the host name, while the status of the connection (Still Connecting) i attempt to disconnect to re-write the host name, but i get a message error (Still executing the last connection) ... how can i terminate the (Last connection) while (Still executing) ?!
Have the connection and login on a seperate form and then add a disconnect button which closes the form and the connection.
http://www.bigresource.com/VB-How-to-Close-FTP-connection-using-inet-MntXMWW4FX.html
This might help ;)