TcpClient and SocketException

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am developing a C# application to send requests to mail server to check
email addresses validity. I use a TcpClient object to connect to it with the
Connect(String hostname, Int32 port) method.
When I use my application at home I don't have any problem to connect and
get responses but when I try at work, I get the SocketException number 10061
: "target machine actively refused it". I don't have any proxy, maybe a
firewall.

My question is to know if there is another way to connect the servers (same
problem with sockets) or if there are existing parameters of the TcpClient
object to connect thru a firewall...

Thanks
 
Hello Julien, As far I know, there is no way to do this, you need to open
the port in the firewall to do the connection.

Regards,

Bela Istok
 
Julien

Sounds like you are not permitted to make a connection on the SMTP port
(normally 25) due to firewall restrictions.
 
It's what I was thinking :\

Just another point, when I use email verifier softwares from this network,
it is working. So it could possible to do it !?
 
Julien said:
It's what I was thinking :\

Just another point, when I use email verifier softwares from this
network, it is working. So it could possible to do it !?

How does th email verifier work?
 
Well what do you define by verified by email? Normally to allow
relaying (not really connection), they either use authentication or POP
before SMTP. You need to know what it's doing to be able to simulate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top