No my ping is ok...
c:\>ping DeltaEngine.net
Pinging deltaengine.net [87.193.151.60] with 32 bytes of data:
Reply from 87.193.151.60: bytes=32 time=33ms TTL=115
Reply from 87.193.151.60: bytes=32 time=33ms TTL=115
Reply from 87.193.151.60: bytes=32 time=36ms TTL=115
Reply from 87.193.151.60: bytes=32 time=32ms TTL=115
seems for me to be more a problem in communication with your 'service' that's listening on port 800.
according to your tip:
'updatet timeout' to 10000 - no success.
then i set some breakpoints to see what things are going on there:
code that fails is:
bool success = result.AsyncWaitHandle.WaitOne(timeoutMs, true);
success is false
from this code-sequence
---------BEGIN CODE_FROM SocketHelper.cs (Delta.Utlitilites.Networking)----------
// Now create end point for connecting
IPEndPoint logServerIp = new IPEndPoint(serverAddress, port);
// Create our socket
Socket serverSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
// And finally connect to the server using a timeout (0.5 seconds)
IAsyncResult result = serverSocket.BeginConnect(logServerIp,null, null);
bool success = result.AsyncWaitHandle.WaitOne(timeoutMs, true);
if (success == false)
---------END CODE FROM SocketHelper.cs (Delta.Utlitilites.Networking)----------
behaviour: waiting for 10 seconds now (i incremented BaseClient.cs DefaultConnectionTimeoutMs to 10000, as you suggested)
success is false
logServerIp: {87.193.151.60:800}
serverSocket - data:
serverSocket {System.Net.Sockets.Socket} System.Net.Sockets.Socket
AddressFamily InterNetwork System.Net.Sockets.AddressFamily
Available 0 int
Blocking true bool
Connected false bool
DontFragment false bool
+ EnableBroadcast 'serverSocket.EnableBroadcast' threw an exception of type 'System.Net.Sockets.SocketException' bool {System.Net.Sockets.SocketException}
ExclusiveAddressUse false bool
+ Handle 19400 System.IntPtr
IsBound true bool
+ LingerState {System.Net.Sockets.LingerOption} System.Net.Sockets.LingerOption
+ LocalEndPoint {0.0.0.0:3549} System.Net.EndPoint {System.Net.IPEndPoint}
+ MulticastLoopback 'serverSocket.MulticastLoopback' threw an exception of type 'System.Net.Sockets.SocketException' bool {System.Net.Sockets.SocketException}
NoDelay false bool
ProtocolType Tcp System.Net.Sockets.ProtocolType
ReceiveBufferSize 8192 int
ReceiveTimeout 0 int
+ RemoteEndPoint 'serverSocket.RemoteEndPoint' threw an exception of type 'System.Net.Sockets.SocketException' System.Net.EndPoint {System.Net.Sockets.SocketException}
SendBufferSize 8192 int
SendTimeout 0 int
SocketType Stream System.Net.Sockets.SocketType
Ttl 32 short
UseOnlyOverlappedIO false bool
+ Static members System.Net.Sockets.Socket System.Net.Sockets.Socket
+ Non-Public members {System.Net.Sockets.Socket} System.Net.Sockets.Socket
+ serverSocket {System.Net.Sockets.Socket} System.Net.Sockets.Socket
hope that helps you?
----------UPDATE--
digged a little bit deeper inside and did some tests:
TcpClient tcp = new TcpClient();
IAsyncResult result2 = tcp.BeginConnect("87.193.151.60", 80, null, tcp);
bool bSucc2 = result2.AsyncWaitHandle.WaitOne(timeoutMs, false);
WORKS :-)
whereas
TcpClient tcp = new TcpClient();
IAsyncResult result2 = tcp.BeginConnect("87.193.151.60", 800, null, tcp);
bool bSucc2 = result2.AsyncWaitHandle.WaitOne(timeoutMs, false);
doesnt !!
seems to have something todo with the port or service, or someone is blocking requests in between...
i'm within a company network, using xp. tryed although there's no need,
to allow port 800 within xp-firewall for tcp and udp - no changes - fails still...
we're not using a proxy so things should work - no idea why this happens...
HYPOTHESE: is this service on another machine than 87.193.151.60 ?
but according to
http://www.t1shopper.com/tools/port-scan/scanning port 800 on 87.193.151.60 gives:
87.193.151.60 is responding on port 800 (mdbs_daemon).
AARGH - no idea what's going on there - maybe my company is blocking this port
- i'll ask our admin...
UPDATE: Admin says - yesssss all not standard ports are blocked...
(maybe you should transfer this to a 'more standard port', if others have the same problem too)
and for me: maybe i can get an exception by our admin :-)
THX
g
Zyko
Edited by user Thursday, October 13, 2011 6:22:33 PM(UTC)
| Reason: Not specified