Page 1 of 1

Cannot connect to SMSC

Posted: Tue Aug 25, 2009 1:13 pm
by guro
Hello.

I have problem with connecting to SMSC. Here is my source code:

Code: Select all

client.AddrNpi = 1;
client.AddrTon = 1;
client.SystemType = "";

client.Connect(<ip address>, <port>);
I don't get any messages, just have client.Status == ConnectionStatus.Closed.

I'm sure that all data is correct and that SMSC is available. May be I should set some other parameters? May be I do something wrong?

P.S. I have the latest version of library.

Please help. Thanks.

Posted: Wed Aug 26, 2009 5:51 am
by alt
Please try to connect with method

Code: Select all

 public bool Connect(IPEndPoint endPoint)
Also please check your network setting, especially if you have 2 network cards in machine.

Please attach to event

Code: Select all

client.evError		+=new ALT.SMS.SmppClient.ErrorEventHandler(client_evError);
it should display error message if something goes wrong.

Posted: Wed Aug 26, 2009 9:49 am
by guro
I tired to connect with both overloads of Connect method. Results are the same.

I have 1 network card, and can ping destination server.

I created handler for Error event, but there is no error and program don't rich this code.

May be you can advise me any tools that will allow to monitor which messages my program send to server and which responses it received (I'm working with 2775 port).

Posted: Thu Aug 27, 2009 1:59 pm
by guro
My issue was solved :)

I don't know why, but SMSC has banned my IP-adress.

Thanks for all.