Jump to content

A socket operation was attempted to an unreachable network 69.28.206.212:25


Recommended Posts

Posted

Hi,

 

I am trying to use the SMS service provided by a SMS provider to send SMS from my application to mobile phone. However, the error existed "A socket operation was attempted to an unreachable network 69.28.206.212:25".

 

The code used is as follow:

 

protected void Submit_Click(object sender, EventArgs e)

{

SmtpClient client = new SmtpClient("smtp.ipipi.com");

client.Credentials = new NetworkCredential("useraccount", "password");

client.Send("[email protected]", "[email protected]", "", "Your Message");

}

 

Could anyone give me any advice?

 

Thanks a lot!

Posted

Like your mail server problem this again appears to be a firewall issue accessing a remote TCP25.

 

For your info; I have tested that server and it works fine.

 

telnet 69.28.206.212 25

Trying 69.28.206.212...

Connected to 69.28.206.212.

Escape character is '^]'.

220 ipipi.com SMTP Server (JAMES SMTP Server 2.3.0) ready Wed, 18 Mar 2009 23:28:41 -0700 (PDT)

^]

telnet> quit

Connection closed

  • Thanks 1
Posted
Like your mail server problem this again appears to be a firewall issue accessing a remote TCP25.

 

For your info; I have tested that server and it works fine.

 

How can I configure the firewall that it can access a remote TCP 25?

 

Thanks!

Posted
It depends upon whether the firewall is a hardware or software device and whether you have control of it. (It might be a block upstream you see...)
Posted
It depends upon whether the firewall is a hardware or software device and whether you have control of it. (It might be a block upstream you see...)

 

 

I have turn off the windows firewall and still not work.

Posted

Ok, how are you connected to the internet? (Is this at work I assume?).

 

Have you contacted your provider and had confirmation that TCP Port 25 is allowed outbound to this destination?

Posted (edited)
Ok, how are you connected to the internet? (Is this at work I assume?).

 

 

 

Have you contacted your provider and had confirmation that TCP Port 25 is allowed outbound to this destination?

 

No, this is at school.

 

I have contacted the SMS service provider and waiting for response.

 

For my SMTP virtual server, when I first configured the SMTP server, I can send email to outside. But I don't know why after a period, I cannot send email to outside. Maybe I made some modification after that.

Edited by amychow
Posted
Ok, how are you connected to the internet? (Is this at work I assume?).

 

Have you contacted your provider and had confirmation that TCP Port 25 is allowed outbound to this destination?

 

Would a router affect this ? maybe going into the routers configuration and making sure that the above port is not blocked ? Not sure as obviously my netgear allows all out going traffic but not sure if that was by default or not.:confused:

  • Thanks 1
Posted
Many school ISPs (RBCs and LAs) will block port 25 to force you to send emails (relay) via their smtp filter service. This is definitely the case within EMBC. Can you give your location as that may help identify who you need to speak with.
Posted
And...?

 

I have also contacted the SMS service provider for the problem I encountered, he/she said "YOU ARE USING A NON EXISTING/DEPRECATED METHOD." and suggested to use SOAP method instead.

 

I am trying the SOAP method and it seems work.

Posted

I have tried the sample code provided by the SMS service provider and it works. However, I don't know how to implement it to my application.

 

The sample code includes:

 

There are 3 files in App_WebReference\com\upsidewireless\api\sms which are SMS.disco, SMS.WSDL and SMS.discomap.

 

There are Default.aspx and Default.aspx.cs in SMS directory. When I browse to the Default.aspx, it will provide me an interface which can send sms message.

 

P.S App_WebReference and SMS directories are in the same level.

 

 

Here are the setting of my application:

 

I created a testSMS ASP.NET Web Application. When I added the "using com.upsidewireless.api.sms;" to the Default.aspx.cs, it gave an error "The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?)", I know that I should add the reference.

Therefore, I created folders com\upsidewireless\api\sms for the testSMS project, and add the SMS.disco, SMS.WSDL and SMS.discomap files to it.

Unluckily, the same error still exist.

 

I am wondering is it the reference should not be added like this way and how should it be added correctly. Steps of steps of how to add the reference will be appreciated.

Posted
I have tried the sample code provided by the SMS service provider and it works. However, I don't know how to implement it to my application.

 

The sample code includes:

 

There are 3 files in App_WebReference\com\upsidewireless\api\sms which are SMS.disco, SMS.WSDL and SMS.discomap.

 

There are Default.aspx and Default.aspx.cs in SMS directory. When I browse to the Default.aspx, it will provide me an interface which can send sms message.

 

P.S App_WebReference and SMS directories are in the same level.

 

 

Here are the setting of my application:

 

I created a testSMS ASP.NET Web Application. When I added the "using com.upsidewireless.api.sms;" to the Default.aspx.cs, it gave an error "The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?)", I know that I should add the reference.

Therefore, I created folders com\upsidewireless\api\sms for the testSMS project, and add the SMS.disco, SMS.WSDL and SMS.discomap files to it.

Unluckily, the same error still exist.

 

I am wondering is it the reference should not be added like this way and how should it be added correctly. Steps of steps of how to add the reference will be appreciated.

 

I solved it.

I just made a careless mistake that forgot to create a App_WebReference asp.net folder.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...