Connecting with emClient to Baikal Server fails:
The Server-URL:
https://mydns.dyndns.info:44444/baikal/cal.php/calendars/user/
fails. but
https://88.65.23.12:44444/baikal/cal.php/calendars/user/
where 88.65.23.12 is the external ip address
works.
In details:
Working with emClient6 and WIn7:
I try to connect to a baikal Server. The Baikal works fine with iOS and OSX Apps.
For a Windows-Mashine I tried emClient.
Access with the local IP works, with the external public ip-address of the router it works also.
But when I replace the IP by the hostname the procedure fails.
When i execute ping with the dns name it resolves properly.
When i connect with a browser to the admin page by using
https://88.65.23.12:44444/baikal/admin
it works.
When i use the external IP a certificate - error raises. But this is OK, because i use DynDns and the certificate is issued for local IP and external dnydns address. In this case a accept the warning and choice “connect” and it works.
When I use the dyndns name in the Server-URL, an error popup window is shown: The Log in the pop-up window:
16:31:09 caldavtester [CalDAV / CardDAV] MailExceptions.ConnectionException: Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden… —> System.Net.WebException: Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden… —> System.IO.IOException: Unerwartetes Dateiende oder 0 Bytes vom Transportstream erhalten.
16:31:09 bei System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
16:31:09 bei System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
16:31:09 bei System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
16:31:09 — Ende der internen Ausnahmestapel ̧berwachung —
16:31:09 bei System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
16:31:09 bei System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
16:31:09 bei MailClient.CalDav.ProtocolCommands.RequestCommand.Execute(HttpWebRequest httpRequest, CancellationToken cancellationToken, Action`1 logBody)
16:31:09 bei MailClient.CalDav.ProtocolCommands.Connector.RunCommand(CalDavAccount account, ICommand command, CancellationToken cancellationToken)
16:31:09 — Ende der internen Ausnahmestapel ̧berwachung —
16:31:09 bei MailClient.CalDav.ProtocolCommands.Connector.RunCommand(CalDavAccount account, ICommand command, CancellationToken cancellationToken)
16:31:09 bei MailClient.CalDav.Synchronizer.BootstrapCommand.UpdateOptions(Uri[] baseUris)
16:31:09 bei MailClient.CalDav.Synchronizer.BootstrapCommand.Execute(WorkerStatus status)
16:31:09 bei MailClient.Commands.Command.Process(WorkerStatus status)
The CALDAV log shows only:
16:31:09.107|013| C: OptionsCommand https://mydns.dyndns.info:44444/baikal/cal.php/calendars/user/
In a second version i worked with a system without proper ssl certificate, but the result was the same.
The ip log (version without certificate) could by find at the end.
remark: Port Number, DNS Name and DNS related hex dump are changed
With regards
heribert
— IP log ------
… means lines left out
IP, dans values are changed
…
16:36:46.791|00D| System.Net Verbose: 0 : [3016] WebRequest::Create(https://mydns.dyndns.info:44444/baikal/cal.php/calendars/tester/)
16:36:46.791|00D| System.Net Verbose: 0 : [3016] HttpWebRequest#64912252::HttpWebRequest(https://mydns.dyndns.info:44444/baikal/cal.php/calendars/tester/#-276060221)
16:36:46.791|00D| System.Net Verbose: 0 : [3016] Exiting HttpWebRequest#64912252::HttpWebRequest()
16:36:46.791|00D| System.Net Verbose: 0 : [3016] Exiting WebRequest::Create() -> HttpWebRequest#64912252
16:36:47.260|00D| System.Net Verbose: 0 : [3016] HttpWebRequest#64912252::BeginGetRequestStream()
16:36:47.260|00D| System.Net Information: 0 : [3016] Associating HttpWebRequest#64912252 with ServicePoint#9010854
16:36:47.291|00D| System.Net Information: 0 : [3016] Associating Connection#43856670 with HttpWebRequest#64912252
16:36:47.291|00D| System.Net.Sockets Verbose: 0 : [3016] Socket#16802227::Socket(InterNetwork#2)
16:36:47.291|00D| System.Net.Sockets Verbose: 0 : [3016] Exiting Socket#16802227::Socket()
16:36:47.291|00D| System.Net.Sockets Verbose: 0 : [3016] Socket#18202863::Socket(InterNetworkV6#23)
16:36:47.291|00D| System.Net.Sockets Verbose: 0 : [3016] Exiting Socket#18202863::Socket()
16:36:47.479|00D| System.Net Verbose: 0 : [3016] Exiting HttpWebRequest#64912252::BeginGetRequestStream() -> ContextAwareResult#30930259
16:36:47.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::EndConnect(ConnectAsyncResult#2715132)
16:36:47.635|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::EndConnect()
16:36:47.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#18202863::Close()
16:36:47.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#18202863::Dispose()
16:36:47.635|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#18202863::Close()
16:36:47.666|003| System.Net Information: 0 : [2080] TlsStream#46157251::.ctor(host=mydns.dyndns.info, #certs=0)
16:36:47.666|003| System.Net Information: 0 : [2080] Associating HttpWebRequest#64912252 with ConnectStream#46475770
16:36:47.666|003| System.Net Information: 0 : [2080] HttpWebRequest#64912252 - Request: OPTIONS /baikal/cal.php/calendars/tester/ HTTP/1.1
16:36:47.666|003|
16:36:47.791|003| System.Net Information: 0 : [2080] SecureChannel#51890598::.ctor(hostname=mydns.dyndns.info, #clientCertificates=0)
16:36:47.885|003| System.Net Information: 0 : [2080] Sicherheitspakete werden enumeriert:
16:36:47.885|003| System.Net Information: 0 : [2080] Negotiate
16:36:47.885|003| System.Net Information: 0 : [2080] NegoExtender
16:36:47.885|003| System.Net Information: 0 : [2080] Kerberos
16:36:47.885|003| System.Net Information: 0 : [2080] NTLM
16:36:47.885|003| System.Net Information: 0 : [2080] Schannel
16:36:47.885|003| System.Net Information: 0 : [2080] Microsoft Unified Security Protocol Provider
16:36:47.885|003| System.Net Information: 0 : [2080] WDigest
16:36:47.885|003| System.Net Information: 0 : [2080] TSSSP
16:36:47.885|003| System.Net Information: 0 : [2080] pku2u
16:36:47.885|003| System.Net Information: 0 : [2080] CREDSSP
16:36:47.885|003| System.Net Information: 0 : [2080] SecureChannel#51890598 - Noch 0 Clientzertifikate zum Auswählen verfügbar.
16:36:47.963|003| System.Net Information: 0 : [2080] AcquireCredentialsHandle(package = Microsoft Unified Security Protocol Provider, intent = Outbound, scc = System.Net.SecureCredential)
16:36:48.166|003| System.Net Information: 0 : [2080] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = (null), targetName = mydns.dyndns.info, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
16:36:48.198|003| System.Net Information: 0 : [2080] InitializeSecurityContext(Länge von In-Buffer = 0, Länge von Out-Buffer = 123, zurückgegebener Code = ContinueNeeded).
16:36:48.198|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::BeginSend()
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::BeginSend() -> OverlappedAsyncResult#9724938
16:36:48.526|003| System.Net Information: 0 : [2080] ConnectStream#46475770 - Header
{
User-Agent: eM Client/6.0.21040.0
16:36:48.526|003| Accept-Encoding: gzip, deflate,gzip, deflate
16:36:48.526|003| Host: mydns.dyndns.info:44444
16:36:48.526|003| Content-Length: 0
16:36:48.526|003| Connection: Keep-Alive
16:36:48.526|003| } werden gesendet.
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#16802227::PostCompletion
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : 16 03 01 00 76 01 00 00-72 03 01 54 88 E7 20 CA : …v…r…T… .
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000010 : 28 18 70 5B 02 53 6B E8-DF 91 C2 61 4C 72 61 8B : (.p[.Sk…aLra.
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000020 : B6 98 79 F9 30 07 D1 C8-54 AF 0A 00 00 18 C0 14 : …y.0…T…
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000030 : C0 13 C0 0A C0 09 00 35-00 2F 00 38 00 32 00 0A : …5./.8.2…
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000040 : 00 13 00 05 00 04 01 00-00 31 FF 01 00 01 00 00 : …1…
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000050 : 00 00 16 00 14 00 00 11-6D 00 00 00 00 2E 64 79 : …mydns.dy
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000060 : 6E 64 6E 73 2E 69 6E 66-6F 00 0A 00 08 00 06 00 : ndns.info…
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] 00000070 : 19 00 17 00 18 00 0B 00-02 01 00 : …
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::EndSend(OverlappedAsyncResult#9724938)
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::EndSend() -> 123#123
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::BeginReceive()
16:36:48.526|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::BeginReceive() -> OverlappedAsyncResult#31106218
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#16802227::PostCompletion
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : 15 03 01 00 02 : …
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::EndReceive(OverlappedAsyncResult#31106218)
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::EndReceive() -> 5#5
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::BeginReceive()
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::BeginReceive() -> OverlappedAsyncResult#59043658
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#16802227::PostCompletion
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] (printing 1024 out of 1435)
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : 01 70 16 03 01 00 5D 02-00 00 59 03 01 15 CF 10 : .p…]…Y…
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] 00000010 : 7A D4 91 2E 9D EA 50 82-3C 5A 33 06 76 3C 70 07 : z…P.<z3.v></z3.v>16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] 00000020 : AC AD 2E 46 8D B9 C7 1D-44 8F CD 61 20 20 EF 21 : …F…D…a .!
…
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::EndReceive(OverlappedAsyncResult#59043658)
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::EndReceive() -> 1435#1435
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::BeginReceive()
16:36:48.635|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::BeginReceive() -> OverlappedAsyncResult#64218094
16:36:58.791|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#16802227::PostCompletion
16:36:58.791|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : :
16:36:58.791|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::EndReceive(OverlappedAsyncResult#64218094)
16:36:58.791|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#16802227::EndReceive() -> 0#0
16:36:59.229|003| System.Net.Sockets Verbose: 0 : [2080] Socket#16802227::Dispose()
16:36:59.229|003| System.Net Error: 0 : [2080] Exception in the HttpWebRequest#64912252:: - Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden…
16:36:59.260|003| System.Net Warning: 0 : [2080] ScriptEngine wurde über eine mögliche Änderung der Systemproxyeinstellungen benachrichtigt und aktualisiert die WebProxy-Einstellungen.
16:36:59.916|003| System.Net Information: 0 : [2080] Associating HttpWebRequest#64912252 with ServicePoint#9010854
16:36:59.916|003| System.Net Information: 0 : [2080] Associating Connection#17965787 with HttpWebRequest#64912252
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::Socket(InterNetwork#2)
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::Socket()
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Socket#24730077::Socket(InterNetworkV6#23)
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#24730077::Socket()
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::BeginConnectEx()
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::InternalBind(0:0#0)
16:36:59.932|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::InternalBind()
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::BeginConnectEx() -> ConnectOverlappedAsyncResult#17758139
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::EndConnect(ConnectOverlappedAsyncResult#17758139)
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::EndConnect()
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Socket#24730077::Close()
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Socket#24730077::Dispose()
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#24730077::Close()
16:37:00.088|003| System.Net Information: 0 : [2080] TlsStream#33452913::.ctor(host=mydns.dyndns.info, #certs=0)
16:37:00.088|003| System.Net Information: 0 : [2080] Associating HttpWebRequest#64912252 with ConnectStream#31828611
16:37:00.088|003| System.Net Information: 0 : [2080] HttpWebRequest#64912252 - Request: OPTIONS /baikal/cal.php/calendars/tester/ HTTP/1.1
16:37:00.088|003|
16:37:00.088|003| System.Net Information: 0 : [2080] SecureChannel#4215477::.ctor(hostname=mydns.dyndns.info, #clientCertificates=0)
16:37:00.088|003| System.Net Information: 0 : [2080] SecureChannel#4215477 - Noch 0 Clientzertifikate zum Auswählen verfügbar.
16:37:00.088|003| System.Net Information: 0 : [2080] Das zwischengespeicherte Anmeldeinformationshandle wird verwendet.
16:37:00.088|003| System.Net Information: 0 : [2080] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = (null), targetName = mydns.dyndns.info, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
16:37:00.088|003| System.Net Information: 0 : [2080] InitializeSecurityContext(Länge von In-Buffer = 0, Länge von Out-Buffer = 123, zurückgegebener Code = ContinueNeeded).
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::BeginSend()
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::BeginSend() -> OverlappedAsyncResult#4554251
16:37:00.088|003| System.Net Information: 0 : [2080] ConnectStream#31828611 - Header
{
User-Agent: eM Client/6.0.21040.0
16:37:00.088|003| Accept-Encoding: gzip, deflate,gzip, deflate,gzip, deflate
16:37:00.088|003| Host: mydns.dyndns.info:44444
16:37:00.088|003| Content-Length: 0
16:37:00.088|003| Connection: Keep-Alive
16:37:00.088|003| } werden gesendet.
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#36982932::PostCompletion
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : 16 03 01 00 76 01 00 00-72 03 01 54 88 E7 2C DF : …v…r…T…,.
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000010 : 05 4D DF 42 D3 EE 18 02-82 26 B2 E0 5B 79 82 DC : .M.B…&…[y…
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000020 : 5A E8 A2 C1 76 3B 70 B2-B3 0C 39 00 00 18 C0 14 : Z…v;p…9…
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000030 : C0 13 C0 0A C0 09 00 35-00 2F 00 38 00 32 00 0A : …5./.8.2…
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000040 : 00 13 00 05 00 04 01 00-00 31 FF 01 00 01 00 00 : …1…
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000050 : 00 00 16 00 14 00 00 11-6D 00 00 00 00 2E 64 79 : …mydns.dy
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000060 : 6E 64 6E 73 2E 69 6E 66-6F 00 0A 00 08 00 06 00 : ndns.info…
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] 00000070 : 19 00 17 00 18 00 0B 00-02 01 00 : …
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::EndSend(OverlappedAsyncResult#4554251)
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::EndSend() -> 123#123
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::BeginReceive()
16:37:00.088|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::BeginReceive() -> OverlappedAsyncResult#10313418
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#36982932::PostCompletion
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : 15 03 01 00 02 : …
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::EndReceive(OverlappedAsyncResult#10313418)
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::EndReceive() -> 5#5
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::BeginReceive()
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::BeginReceive() -> OverlappedAsyncResult#41110389
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#36982932::PostCompletion
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] (printing 1024 out of 1435)
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : 01 70 16 03 01 00 5D 02-00 00 59 03 01 FD EC EC : .p…]…Y…
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] 00000010 : 99 26 BC A4 B5 FD 77 21-D0 5B 87 70 EE 30 69 27 : .&…w!.[.p.0i’
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] 00000020 : 11 4D 39 6B 2B 13 FA 9E-ED 32 74 85 2F 20 42 B3 : .M9k+…2t./ B.
…
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::EndReceive(OverlappedAsyncResult#41110389)
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::EndReceive() -> 1435#1435
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::BeginReceive()
16:37:00.182|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::BeginReceive() -> OverlappedAsyncResult#27787984
16:37:10.354|003| System.Net.Sockets Verbose: 0 : [2080] Data from Socket#36982932::PostCompletion
16:37:10.354|003| System.Net.Sockets Verbose: 0 : [2080] 00000000 : :
16:37:10.354|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::EndReceive(OverlappedAsyncResult#27787984)
16:37:10.354|003| System.Net.Sockets Verbose: 0 : [2080] Exiting Socket#36982932::EndReceive() -> 0#0
16:37:10.385|003| System.Net.Sockets Verbose: 0 : [2080] Socket#36982932::Dispose()
16:37:10.385|003| System.Net Error: 0 : [2080] Exception in the HttpWebRequest#64912252:: - Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden…
16:37:10.385|00D| System.Net Verbose: 0 : [3016] HttpWebRequest#64912252::EndGetRequestStream()
16:37:10.385|00D| System.Net Error: 0 : [3016] Exception in the HttpWebRequest#64912252::EndGetRequestStream - Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden…
16:38:01.495|009| System.Net.Sockets Verbose: 0 : [2796] Socket#43549305::Dispose()