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 6 5718
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" <Ju****@discuss ions.microsoft. comwrote in message
news:CC******** *************** ***********@mic rosoft.com...
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
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 !?
"Hadi Hariri" wrote:
Julien
Sounds like you are not permitted to make a connection on the SMTP port
(normally 25) due to firewall restrictions.
-- http://www.hadihariri.com http://www.malagadnug.org
Julien wrote:
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?
-- http://www.hadihariri.com http://www.malagadnug.org
I don't know but it should connect on the remote smtp server !?
"Hadi Hariri" wrote:
Julien wrote:
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?
-- http://www.hadihariri.com http://www.malagadnug.org
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.
-- http://www.hadihariri.com http://www.malagadnug.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hawk Wu via DotNetMonster.com |
last post by:
Hello,
I have odd problem. When I close my application wait around 5 minute. The
pocket of screen will show one message "System.Net.Sockets.Tcpclient" of
message box. My source code as below.
Dim t1 as TcpClient
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.
EventArgs) Handles MyBase.Load
Dim bf(255) As Byte
t1.GetStream.BeginRead(bf, 0, 255, AddressOf DoRead, Nothing)
|
by: Sagaert Johan |
last post by:
i get this error if i write this :
using System.Net.Sockets;
....
....
TcpClient tcp;
tcp=new TcpClient();
|
by: Sagaert Johan |
last post by:
this code
using System;
using System.Net.Sockets;
namespace ConsoleApplication1
{
/// <summary>
/// Summary description for Class1.
/// </summary>
|
by: Kirk |
last post by:
Hello,
I'm trying to get the current date/time from a (S)NTP server. It works
with UdpClient class, but not with TcpClient class. I want to use
TcpClient because i can set timeout values for reading/writing operations.
The connect method generate a SocketException (10060 : timeout error) :
try
{
|
by: Peter Stojkovic |
last post by:
I have an TcpClient. System.Net.Sockets.TcpClient
Everything is working fine.
But when the IP-Address is wrong, I DON'T want wait 20seconds for timeout
( seems to be standard )
Is there any possibility to configure the timeout ??
Tnaks Peter
| |
by: Frank |
last post by:
I wonder if anyone could give me a suggestion on how to best handle this
scenario.
I wish to have an aspx page contact a server and receive messages.
Initially, a login messge is sent, then after being validated, a second
message is sent which contains data to complete a stock market trade. The
server then should respond not only once, but with several return messages.
So far all I have found are examples that send, receive, and...
|
by: Frank |
last post by:
I wonder if anyone could give me a suggestion on how to best handle this
scenario.
I wish to have an aspx page contact a server and receive messages.
Initially, a login messge is sent, then after being validated, a second
message is sent which contains data to complete a stock market trade. The
server then should respond not only once, but with several return messages.
So far all I have found are examples that send, receive, and...
|
by: illegal.prime |
last post by:
Hi all, I've got a client/server application and just wanted to ensure
that this is expected behavior. I recently set the following
configuration in Visual Studio:
Debug->Exceptions->Break Into Debugger
for the CLR Exceptions
And when my debugger hits the TcpClient.Connect statement and the
server is not available - I get the following three first chance
exceptions:
A first chance exception of type 'System.Net.Sockets.SocketException'
|
by: mledbetter |
last post by:
I've written a simple web stress tester application using TCPClient.
My code was working fine against our web server until our server admin changed IIS security setting by removing anonymous access and adding Integrated windows authentication.
Now I get 401 Unauthorized errors.
Here is the code that was working:
// Make non-secure HTTP Client connections.
private string MakeTcpClientRequest()
{
String _url =...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |