BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Target machine actively refused it

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 2:58 am    Post subject: Target machine actively refused it Reply with quote



Cannot connect. Get this message. Things were fine. What happened?


Back to top
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 3:20 am    Post subject: Re: Target machine actively refused it Reply with quote





Sanford Aranoff wrote:

Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.




Back to top
Francois PIETTE [ICS - Mi
Guest





PostPosted: Fri Dec 30, 2005 9:34 am    Post subject: Re: Target machine actively refused it Reply with quote



Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.

You should provide the error code. Something like 10061 (This is a winsock
error code saying "connection refused").

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




Back to top
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 11:35 am    Post subject: Re: Target machine actively refused it Reply with quote



"Francois PIETTE [ICS - MidWare]" wrote:

Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.

You should provide the error code. Something like 10061 (This is a winsock
error code saying "connection refused").

Yes. 10061



Back to top
Francois PIETTE [ICS - Mi
Guest





PostPosted: Fri Dec 30, 2005 12:39 pm    Post subject: Re: Target machine actively refused it Reply with quote

Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.

You should provide the error code. Something like 10061 (This is a
winsock
error code saying "connection refused").

Yes. 10061

As I said, error 10061 is a winsock error telling that the remote computer
doesn't accept the connection. This occur when the remote computer has no
program accepting the connection. The server is not running if you prefer.

This may also happend when there is a bug or misconfiguration in the client
program. You think you connect to some remote IP/Port but actually
connection is attempted on another IP/Port.

So first check the server program is running on the target computer, verify
that the program is running is listening on the correct port number of the
interface you will conect thru.

If the server is running, then check your client program. Verify that it
tries to connect to the server IP using the correct port.

If everything seems OK, use a sniffer to spy on the network cable and see
what happend. Yousee the packets from client trying to establish the
connection to the server and the packets from the server, either refusing
the connection (which will result in error 10061). You'll be able to confirm
the client program tries to connect to the correct IP/port.

As sniffer you can use the free Ethereal. Link on the links page at my
website.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




Back to top
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 1:46 pm    Post subject: Re: Target machine actively refused it Reply with quote



"Francois PIETTE [ICS - MidWare]" wrote:

Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.

You should provide the error code. Something like 10061 (This is a
winsock
error code saying "connection refused").

Yes. 10061

As I said, error 10061 is a winsock error telling that the remote computer
doesn't accept the connection. This occur when the remote computer has no
program accepting the connection. The server is not running if you prefer.

I can connect to the Internet via most software programs, such as IE, Opera,
Netscape, and AtomTime. When I run Delphi 5 and try to connect, e.g., to the
NIST time (the same server that AtomTime connects to), I get this error. This
was working fine until yesterday. I do not know what I did and how to undo it.
Maybe because I reinstalled Panda.

I had a crash, and had to reinstall the OS. I did it fine. My Delphi programs
were connecting to the Internet. Then suddenly refuse connection.



Back to top
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 2:11 pm    Post subject: Re: Target machine actively refused it Reply with quote



"Francois PIETTE [ICS - MidWare]" wrote:

Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.

You should provide the error code. Something like 10061 (This is a
winsock
error code saying "connection refused").



From the command prompt, I typed telnet server 110. Could not connect. I
disabled Panda anti-virus.


Back to top
Francois PIETTE [ICS - Mi
Guest





PostPosted: Fri Dec 30, 2005 2:14 pm    Post subject: Re: Target machine actively refused it Reply with quote


Quote:
I had a crash, and had to reinstall the OS. I did it fine. My Delphi
programs
were connecting to the Internet. Then suddenly refuse connection.

Maybe you installed Windows XP embedded Firewall or forgot ot allow outgoing
programs ?
Maybe you have another kind of firewall program ?

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




Back to top
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 3:38 pm    Post subject: Re: Target machine actively refused it Reply with quote



Sanford Aranoff wrote:

Quote:
"Francois PIETTE [ICS - MidWare]" wrote:

Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.


ClientSocket:= TClientsocket.Create(nil);
with ClientSocket do
try
ClientType:= ctBlocking;
Port:= 13;
....

This worked in the past. I do not understand port = 13.


Back to top
Sanford Aranoff
Guest





PostPosted: Fri Dec 30, 2005 3:49 pm    Post subject: Re: Target machine actively refused it Reply with quote



An invalid argument 10022 was supplied on API connect

Back to top
Francois PIETTE [ICS - Mi
Guest





PostPosted: Fri Dec 30, 2005 3:58 pm    Post subject: Re: Target machine actively refused it Reply with quote

Quote:
Cannot connect. Get this message. Things were fine. What
happened?

TClientSocket error.


ClientSocket:= TClientsocket.Create(nil);
with ClientSocket do
try
ClientType:= ctBlocking;
Port:= 13;
...

This worked in the past. I do not understand port = 13.

This is the port you want to connect to. It depends on the server you want
to connect to. If you select a random port, you will of course - except by
chance - get a 10061 error !
You must select a correct IP address (the server's IP of course).
You must select the correct port (The port the server listen on)
You must select the correct protocol (TCP or UDP).

What is the server ?

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Dec 30, 2005 10:13 pm    Post subject: Re: Target machine actively refused it Reply with quote


"Sanford Aranoff" <aranoff (AT) analysis-knowledge (DOT) com> wrote


Quote:
Cannot connect. Get this message. Things were fine. What happened?

You tried to connect to a server that is not running - or - to a server that
has too many pending connections at the time.


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Dec 30, 2005 10:15 pm    Post subject: Re: Target machine actively refused it Reply with quote


"Sanford Aranoff" <aranoff (AT) analysis-knowledge (DOT) com> wrote


Quote:
An invalid argument 10022 was supplied on API connect

Did you set the TClientSocket's Host or Address property?


Gambit



Back to top
Sanford Aranoff
Guest





PostPosted: Sat Dec 31, 2005 5:45 pm    Post subject: Re: Target machine actively refused it Reply with quote



"Francois PIETTE [ICS - MidWare]" wrote:

Quote:
Cannot connect. Get this message. Things were fine. What happened?

TClientSocket error.

You should provide the error code. Something like 10061 (This is a
winsock
error code saying "connection refused").

Yes. 10061

As I said, error 10061 is a winsock error telling that the remote computer
doesn't accept the connection. This occur when the remote computer has no
program accepting the connection. The server is not running if you prefer.

Reinstalled from the image on an external hard disk. Now things are working
fine. What could have gone wrong? Who knows? I do not have the files anymore to
investigate. It bothers me how something like this could have happened.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.