by cooldad » Tue Jul 01, 2008 7:05 pm
When I start Betting Assistant, after I logon, I receive the following error message:
---------------------------
Betting Assistant
---------------------------
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Betting_Assistant.betfair.BFGlobalService.login(LoginReq request)
at Betting_Assistant.Main.doLogon(Boolean loginAuto)
---------------------------
OK
---------------------------
I have no firewall, I am not using a proxy. I can connect to the Internet using IE, so the Connection settings in IE are fine (this was causing a similar problem last week). There is nothing wrong with my user credentials; I can run Betting Assistant and logon from a different PC with no problem.
From the Ethernet trace, it looks like Betting Assistant is doing a DNS lookup for api.betfair.com, which returns IP address 84.20.192.244, and then no data is seen on the interface.
Please note that this problem really is different from last week´s connection problem. Not only the error message is different, but last time I couldn´t even get /BA_Updates/UpdateConfig.xml, which seems OK now.
Any idea what can be causing this?
This the Ethernet trace:
No. Time Source Destination Protocol Info
1 0.000000 192.168.0.106 213.171.218.172 TCP iclpv-sas > http [SYN] Seq=0 Win=65535 Len=0 MSS=1460
Frame 1 (62 bytes on wire, 62 bytes captured)
Ethernet II, Src: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85), Dst: SitecomE_38:05:86 (00:0c:f6:38:05:86)
Internet Protocol, Src: 192.168.0.106 (192.168.0.106), Dst: 213.171.218.172 (213.171.218.172)
Transmission Control Protocol, Src Port: iclpv-sas (1391), Dst Port: http (80), Seq: 0, Len: 0
No. Time Source Destination Protocol Info
2 0.047558 213.171.218.172 192.168.0.106 TCP http > iclpv-sas [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460
Frame 2 (62 bytes on wire, 62 bytes captured)
Ethernet II, Src: SitecomE_38:05:86 (00:0c:f6:38:05:86), Dst: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85)
Internet Protocol, Src: 213.171.218.172 (213.171.218.172), Dst: 192.168.0.106 (192.168.0.106)
Transmission Control Protocol, Src Port: http (80), Dst Port: iclpv-sas (1391), Seq: 0, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
3 0.047655 192.168.0.106 213.171.218.172 TCP iclpv-sas > http [ACK] Seq=1 Ack=1 Win=65535 Len=0
Frame 3 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85), Dst: SitecomE_38:05:86 (00:0c:f6:38:05:86)
Internet Protocol, Src: 192.168.0.106 (192.168.0.106), Dst: 213.171.218.172 (213.171.218.172)
Transmission Control Protocol, Src Port: iclpv-sas (1391), Dst Port: http (80), Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol Info
4 0.048079 192.168.0.106 213.171.218.172 HTTP GET /BA_Updates/UpdateConfig.xml HTTP/1.1
Frame 4 (201 bytes on wire, 201 bytes captured)
Ethernet II, Src: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85), Dst: SitecomE_38:05:86 (00:0c:f6:38:05:86)
Internet Protocol, Src: 192.168.0.106 (192.168.0.106), Dst: 213.171.218.172 (213.171.218.172)
Transmission Control Protocol, Src Port: iclpv-sas (1391), Dst Port: http (80), Seq: 1, Ack: 1, Len: 147
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
5 0.106280 213.171.218.172 192.168.0.106 TCP http > iclpv-sas [ACK] Seq=1 Ack=148 Win=5840 Len=0
Frame 5 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: SitecomE_38:05:86 (00:0c:f6:38:05:86), Dst: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85)
Internet Protocol, Src: 213.171.218.172 (213.171.218.172), Dst: 192.168.0.106 (192.168.0.106)
Transmission Control Protocol, Src Port: http (80), Dst Port: iclpv-sas (1391), Seq: 1, Ack: 148, Len: 0
No. Time Source Destination Protocol Info
6 0.107031 213.171.218.172 192.168.0.106 HTTP/XML HTTP/1.1 200 OK
Frame 6 (1005 bytes on wire, 1005 bytes captured)
Ethernet II, Src: SitecomE_38:05:86 (00:0c:f6:38:05:86), Dst: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85)
Internet Protocol, Src: 213.171.218.172 (213.171.218.172), Dst: 192.168.0.106 (192.168.0.106)
Transmission Control Protocol, Src Port: http (80), Dst Port: iclpv-sas (1391), Seq: 1, Ack: 148, Len: 951
Hypertext Transfer Protocol
eXtensible Markup Language
No. Time Source Destination Protocol Info
7 0.145473 192.168.0.106 213.171.218.172 HTTP GET /BA_Updates/UpdateConfig.xml HTTP/1.1
Frame 7 (341 bytes on wire, 341 bytes captured)
Ethernet II, Src: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85), Dst: SitecomE_38:05:86 (00:0c:f6:38:05:86)
Internet Protocol, Src: 192.168.0.106 (192.168.0.106), Dst: 213.171.218.172 (213.171.218.172)
Transmission Control Protocol, Src Port: iclpv-sas (1391), Dst Port: http (80), Seq: 148, Ack: 952, Len: 287
Hypertext Transfer Protocol
No. Time Source Destination Protocol Info
8 0.205581 213.171.218.172 192.168.0.106 HTTP/XML HTTP/1.1 200 OK
Frame 8 (1004 bytes on wire, 1004 bytes captured)
Ethernet II, Src: SitecomE_38:05:86 (00:0c:f6:38:05:86), Dst: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85)
Internet Protocol, Src: 213.171.218.172 (213.171.218.172), Dst: 192.168.0.106 (192.168.0.106)
Transmission Control Protocol, Src Port: http (80), Dst Port: iclpv-sas (1391), Seq: 952, Ack: 435, Len: 950
Hypertext Transfer Protocol
eXtensible Markup Language
No. Time Source Destination Protocol Info
9 0.320818 192.168.0.106 213.171.218.172 TCP iclpv-sas > http [RST, ACK] Seq=435 Ack=1902 Win=0 Len=0
Frame 9 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85), Dst: SitecomE_38:05:86 (00:0c:f6:38:05:86)
Internet Protocol, Src: 192.168.0.106 (192.168.0.106), Dst: 213.171.218.172 (213.171.218.172)
Transmission Control Protocol, Src Port: iclpv-sas (1391), Dst Port: http (80), Seq: 435, Ack: 1902, Len: 0
No. Time Source Destination Protocol Info
10 6.558815 192.168.0.106 192.168.0.1 DNS Standard query A api.betfair.com
Frame 10 (75 bytes on wire, 75 bytes captured)
Ethernet II, Src: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85), Dst: SitecomE_38:05:86 (00:0c:f6:38:05:86)
Internet Protocol, Src: 192.168.0.106 (192.168.0.106), Dst: 192.168.0.1 (192.168.0.1)
User Datagram Protocol, Src Port: cardax (1072), Dst Port: domain (53)
Domain Name System (query)
[Response In: 11]
Transaction ID: 0x53a2
Flags: 0x0100 (Standard query)
Questions: 1
Answer RRs: 0
Authority RRs: 0
Additional RRs: 0
Queries
No. Time Source Destination Protocol Info
11 6.587958 192.168.0.1 192.168.0.106 DNS Standard query response A 84.20.192.244
Frame 11 (91 bytes on wire, 91 bytes captured)
Ethernet II, Src: SitecomE_38:05:86 (00:0c:f6:38:05:86), Dst: SitecomE_3c:0b:85 (00:0c:f6:3c:0b:85)
Internet Protocol, Src: 192.168.0.1 (192.168.0.1), Dst: 192.168.0.106 (192.168.0.106)
User Datagram Protocol, Src Port: domain (53), Dst Port: cardax (1072)
Domain Name System (response)
[Request In: 10]
[Time: 0.029143000 seconds]
Transaction ID: 0x53a2
Flags: 0x8180 (Standard query response, No error)
Questions: 1
Answer RRs: 1
Authority RRs: 0
Additional RRs: 0
Queries
Answers