socketexception

JavaMail: How to solve SocketException?

。_饼干妹妹 提交于 2019-12-11 16:08:30
问题 I am using the following code to send emails from a Java application. On my computer it works fine, on second computer too, but on another computer (in the same network) it doesn't, although we're using the same connection settings. public void connect() throws MessagingException { Authenticator auth = new Authenticator(){ @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(smtpUser, smtpPassword); } }; Properties props = new Properties()

Android TCP Socket Error

拟墨画扇 提交于 2019-12-11 12:57:47
问题 i recently wanted to create an application on android which connects to a c# server via tcp. The Server is created and listens also Ports are opened. The Problem is the error which my android application causes: 07-20 02:11:52.057 1262-1262/connector.de.connect2 W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android

WCF SocketException

故事扮演 提交于 2019-12-11 10:25:10
问题 I'm developing a WCF application in VS2010. When I use the in-IDE debugger to run the host application and the client, everything works as intended. However, when I run the two executables manually (going to the /bin/Debug/ folders), I get the following exception from the client: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8732 The odd thing is, in the app.config file I'm specifying to use port 5000, not 8732. What's

Android HttpUrlConnection HttpPost receive a SocketException: no route to host

偶尔善良 提交于 2019-12-11 04:54:09
问题 Hey I try to send a HttpPost to an special Device in a local network over wifi. If I try the same code on a simple Java application it will work, but If I try the same code on android I am not able to send the HttpPost. String uri = "http://192.168.3.201:8080/remote/json-rpc/getPeripherals"; Log.i("uri", uri); String requestBody = "{\"jsonrpc\":\"2.0\",\"method\":" + "\"configclient_homedevices/getPeripherals\",\"id\":" + "\"1349942076918\",\"params\":[]}"; Log.i("uri", uri); String

problem: Socket error [Address already in use] in python/selenium

冷暖自知 提交于 2019-12-11 02:18:52
问题 I have a troublesome problem socket.error error: [Errno 10048]: Address already in use. Only one usage of each socket address (protocol/IP address/port) is normally permitted during automated tests using Selenium with Python. The problem is so interesting that it runs on one machine (Linux) works correctly, but on another machine (WindowsXP) generates this error. I would add that the problem arose after the reinstallation of the system and set up all over again - with the previous

Pentaho DI Send Mail. Read timed out

心已入冬 提交于 2019-12-11 00:59:13
问题 I am trying to send an email from my Gmail account. Bellow are the SMTP details that I provided. Server: smtp.gmail.com Port : 465 (also tried 587) Use Authentication: Yes Authentication User: my full email id Authentication password: my password Use Secure Authentication: Yes Secure Connection Type: SSL This is the error that I am getting. 2016/03/16 17:35:45 - [ftp-poc].Mail - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : Problem while sending message: javax.mail

Intellij / Websphere run config says “address localhost:8880 is already in use”

空扰寡人 提交于 2019-12-10 22:25:51
问题 This is my first attempt at creating a Websphere Local run configuration in Intellij and obviously I need some help. First question: is Websphere supposed to be running when I run the configuration? Second question: when I run the configuration and Webshpere is not running Intellij will say 'cannot ping localhost:8880', so probably Websphere should be running. When I start Websphere and then start the Intellij run config it says "address localhost:8880 is already in use" and then "Unable to

Android bluetooth connect() throwing error

我只是一个虾纸丫 提交于 2019-12-10 19:32:36
问题 I have a project requirement wherein we have a product that contains two components -an android tablet and a PCB(containing an RN42 bluetooth chip).These two components are inside a plastic casing hence always will be in close proximity to each other.Both these devices would be paired once initially, hence the pairing info is present in the tablet forever. Problem : In my code I make use of a function which initializes the bluetooth socket and gets access to the DataOut and DataIn ports using

Sporadic TCP connection failures (WSAEHOSTUNREACH)

余生颓废 提交于 2019-12-10 18:09:39
问题 On a local gigabit network, I have an application using a single TCP server and many clients. Each client pings the server every 30 seconds, by opening a TCP connection, sending it a status message, and closing. The server is set up using SocketAsyncEventArgs very similarly to the example shown HERE (omitted for brevity) The clients initiate the connection using a TcpClient. Relevant section of client code: using (TcpClient client = new TcpClient()) { IAsyncResult ar = client.BeginConnect

Why are localhost connections blocked by the firewall?

时间秒杀一切 提交于 2019-12-10 13:47:37
问题 When I listen on a port on localhost, Windows will popup a dialogue in which the user must add my program to the list of firewall exceptions. This is annoying, and requires administrator-rights, which the user may not have. Why does Windows do this for loopback connections (127.0.0.1) and is there some trick to prevent this? 回答1: The answer was to specify: IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Loopback, Port); instead of IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any,