Socket Exception when Connecting from Phone - windows-phone-8

I try to do an example about client-server Windows Phone app
but when I debug code, there is a error
An unhandled exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll
Additional information: No connection could be made because the target
machine actively refused it
If there is a handler for this exception, the program may be safely
continued.
What should I do?

Try changing the port , the firewall may be blocking some of the ports associated with another applications.
For internal use you can use IP 127.0.0.1 , Port 5738
Best Regards,
Yaniv Jacob Jacob

Related

Exception occurred while flushing email queue on Ionos virtual cloud server

I have a Symfony 4 application running on 1und1 on a package called "1&1 Unlimited Plus". The SMTP config looks like this:
MAILER_URL=smtp://smtp.1and1.com?username=****&password=******
and it works fine. I also have a development copy of this application on my local dev server with same config. This dev copy can send emails, too.
Since the databases on "1&1 Unlimited Plus" are limited to 1GB, I ordered another cloud server from Ionos. With the same config I am not able to send emails. I got this error in dev.log:
Exception occurred while flushing email queue: Connection could not be established with host smtp.1and1.com [Connection timed out #110]
Ping on smtp.1and1.com works, it reveals the same IP like if I ping on my dev server. On this cloud server I have running:
Plesk Onyx
Ubuntu 18.04.2 LTS‬
DNS turned off. I have just an A-record on the origin server to the IP of cloud server. NO MX-records set.
I checked the firewall rules. No outgoing limits found, just incoming. I added TCP 25 to incoming rules but I dont know if it is necessary.
I tried another ports but then I got this:
Exception occurred while flushing email queue: Expected response code 220 but got an empty response []
More config:
swiftmailer:
url: '%env(MAILER_URL)%'
spool: { type: 'memory' }
Any idea whats wrong?
I found the solution. Ionos closes the outgoing port 25 per default. This is nothing I can find or change in admin area, only technical support can open this port.

Sending test mail fails in confluence

I need to evaluate notification functionality in confluence.
I have installed confluence locally on my PC.
I have configured mail server in it by going to General Configuration->Mail Servers->Add a new SMTP mail server
I have provided smtp.office365.com as Server Host Name and 587 as Server port.
I have used my company user id as User name and corresponding password.
However when I try to send a test mail, it fails with below exception
"Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587" and also we have tried to configure our smtp server and getting error as "Caused by: java.net.SocketException: Permission denied: connect"
I have seen accepted answers for this question at post https://answers.atlassian.com/questions/139025/error-while-configuring-mail-server
However that is related to a bug Java1.7 whereas I am using Java1.8.
Can someone please suggest any idea what thing can be wrong?
Looking at the hostname it seems that the mail server is in the internet. If you are behind a proxy you will need to configure this in the java options as described here
https://confluence.atlassian.com/doc/configuring-web-proxy-support-for-confluence-117068.html

port-binding failures for subethasmtp email server in Openshift environment

I have an application which uses subethasmtp library to receive inbound emails. I have tested my application (a listener) on my laptop by binding the (subethasmtp) email server to port 25. It worked fine.
When I built my application on Openshift, I received the following exception:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 74) JBWEB000287: Exception sending context initialized event to listener instance of class org.SandRiver.InvoiceMailServer.InvoiceListener: java.lang.RuntimeException: java.net.BindException: Permission denied
I also tried to bind to a port > 20000, but received the same error message.
May someone help me?
Best Regards,
John Zhu
You can not bind to port 25, that requires root access. You should try ports between 15000 and 20000, and see if that works, it should. Also, those ports will not be able to be accessed from outside of your gear, so unless you are trying to just use that mail server for something on your gear, it is not going to work correctly (accept/send email from an outside source)

Errors with Port Forwarding and File Sync in NitrousIO Mac client

I am trying to get the MAC client app to sync files and enable port forwarding.
When I turn on port forwarding I get "Port Forwarding Error: Authentication failed."
When I turn on File Sync I get "File Sync Error: Lost connection with the server"
I can see my boxes in the client app and tell when they are running or not.
Any help with this issue would be appreciated.
Worked with NitrousIO tech support and it was an issue with ssh keys. They had to delete my keys on their end and register them again.
If this happens to you, you will want to contact support.

Intermittant SMTP email exception - Service not available, closing transmission channel. The server response was: 4.4.2 service timed out

I have started to see an intermittant error when sending email via my application.
System.Net.Mail.SmtpException: Service not available, closing transmission channel. The server response was: 4.4.2 service timed out.
Now obviously it's timing out for some reason, but any ideas as to why this is happening now? This is the first time I've seen it happen.
Some things to check:
has anything on the server side changed? Did the admins add some kind of greylisting, perhaps?
what happens if you connect to the server directly via telnet on port 25?
does this occur from other applications, as well (e.g. your desktop E-mail client) ?