Login  
Search All Forums
Dart Home | Custom Development Reply | General Questions Topics | Forums   
AuthorForum: General Questions
Topic: Getting problem to communicate in different networks?
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted June 19, 2012 12:27 PM

Hello

We have Dart.PowerTCP.Sockets version 1.1.1.4

We are trying to connect with client and server, in different networks.

In this case we are using port forwarding concept.

From build location (“c:\project\connect_tcp\bin\ Debug”) the Application has successfully connected with server on different networks.

But when we want to run the Application on different places, like “d:\”,”e:\” etc.
 It cannot connect with server.

We are using the following code to connect - TCPObject.Connect(ServerIP,Server TCP Port Number)

And we get the following error
“A blocking operation was interrupted by a call to WSACancelBlockingCall”

Please send your advice

Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted June 19, 2012 1:42 PM

Hello,

This exception indicates that a blocking operation was cancelled from another thread. For example, this can occur when calling Abort() from an event. It shouldn't behave any differently from a different directory unless it was designed to do so.

You may want to take a look at your code in the StateChanged event.

Are you able to run our current (4.4.1.3) tcp client sample in the directory locations you're having issues in? (Download here: http://www.dart.com/samples/PowerTCP%20Sockets%20for%20.NET%204.4.1%20Samples.zip )
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted June 29, 2012 10:17 AM

Hello

I have checked on my code that Abort() is not calling during build a connection on different network.

I have also checked on TCP ConnectedChangedEx event.But there is no exception on this event.

Is there any other option or program that can block or cancel the connection ?

Please help

Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted June 29, 2012 11:15 AM

Hello,

A firewall or antivirus could.

Are you able to run our current (4.4.2) tcp client sample in the directory locations you're
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted July 3, 2012 12:24 PM

Hello,

We have uninstall the antivirus and shutdown the windows firewall.Because we have seen that antivirus store the build path on his local file.
Now on my pc there is no antivirus.

But after uninstall the antivirus, we cannot connect with server from build area also.It shows same error "A blocking operation was interrupted by a call to WSACancelBlockingCall"

We have checked on code.There we just set the server IP address and port number and call the Tcp connect().
example :- TCPObject.Connect(ServerIP,Server TCP Port Number).
We think, on code there is no thread which is blocking this TCPObject.

Actually on same network it work perfect.No exception has occurred. But if we use the different network using port forwarding to connect with server then this error has come.

Please share with us your valuable experience regarding this point.

We have also tried to run your tcp client sample in the directory locations but it gets the error message "Thank you for using PowerTCP Sockets for .NET.
Assembly built without a trial license. Please install PowerTCP Sockets for .NET and rebuild your project."

thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 3, 2012 1:06 PM

Hello,

I'm sorry, our licensing has recently changed. Please install the current trial installation package in order to test this:
http://www.dart.com/sockets-net-trial.aspx

Or download the previous version which does not require installation:
http://www.dart.com/samples/PowerTCP%20Sockets%20for%20.NET%204.4.1%20Samples.zip

Just to confirm: you are still able to connect via port forwarding from your build directory (c:\project\connect_tcp\bin\Debug), but not from other hard drive locations on your computer using version 1.1.1.4?
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted July 9, 2012 10:14 AM

Hello

We have installed your current trial installation package on our PC, from (http://www.dart.com/sockets-net-trial.aspx).After installed the trial , we run the sample code from (
http://www.dart.com/samples/PowerTCP%20Sockets%20for%20.NET%204.4.1%20Samples.zip
).Only the PingClient application has run here.It also run from our build directory location and shows the ping status. Is it ok ?

One more question, will Dart.PowerTCP.Sockets version 1.1.1.4 work over internet ?

Please help

thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 10, 2012 11:35 AM

Hello,

Please test with the included TCP Client sample to test if you can connect to your remote server, under the same circumstances that you have the issue with version 1.1.1.4. (A few levels down in the WinForms folder, or available in the solution files)

Yes, Dart.PowerTCP.Sockets 1.1.1.4 works over the internet.

You said that "Actually on same network it work perfect.No exception has occurred", does this mean that "when we want to run the Application on different places, like “d:\”,”e:\” etc. It cannot connect with server." is no longer true?
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted July 20, 2012 8:54 AM

Hello

Thanks for your reply.

We have tested on your sample “TCPClient” application with our “remote server” application over internet.

Your sample “TCPClient” application is successfully connected with our “remote server” application in same circumstances that we have the issue with our Dart.PowerTCP.Sockets 1.1.1.4.

But on that time when we want to connect using our “TCPClient” application with our “remote server” application it gets the same error.

We have seen that on your sample code, for “TCP.Connect(Session)” method using “TCPSession”. But on our code we are using “TCP.Connect(“ServerIP”,ServerPortNo)” method.
 
So is there any difference between two “TCP.Connect” methods when it wants to connect with server over internet?

Yes, on same network it work perfect and it can run from different location also.

Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted July 20, 2012 10:33 AM

Hello,

The only difference that we think could cause this is that the TcpSession object also contains the LocalEndPoint property. You might try setting the Tcp.LocalEndPoint property on Sockets 1.1.1.4 to each of your network adapter IPs; they may be binding to different local addresses by default.

If that doesn't help, is upgrading to version 4.4 an option? With your subscription, you're entitled to it for no additional cost.
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 8, 2012 7:24 AM

Hello

Thanks for your suggestion.

We have tried to set the Tcp.LocalEndPoint property on Sockets 1.1.1.4. But the LocalEndPoint property is read only. So we can't set the network adapter IPs on it.

is there any other way to connect with server over different networks?

Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 8, 2012 9:08 AM

Hello,

I'm sorry, I misspoke; two of the Connect() overloads may be used to specify the local binding address:

Connect(String, Int32, String, Int32)
Connect(String, Int32, String, Int32, Int32)
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 9, 2012 6:41 AM

Hello,

I have used this "Connect(String, Int32, String, Int32)" to connect with the server over internet.

But it can't connect with the server over internet using port forwarding and still getting same error.

I have used Connect(ServerIP,ServerPortNO,LocalIP/ClinetIP,ClientPortNO)
example: Connect("115.253.64.81",44006,"192.168.1.221",0)

is this the right way to connect with the server
or missing something?

Please suggest us.

thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 9, 2012 10:52 AM

Hello,

That looks like the correct use.

Since the current version of the component works, after connecting to the server with it, (after Tcp.Connect(session); in TcpModel) please check the value of Tcp.Socket.LocalEndPoint; is this the same IP address as the LocalEndPoint you're using to connect to your server with version 1.1.1.4?

Can you please send in that network map we asked for in the other forum thread? It might help shine some light on your situation.

Just to confirm; the exception that you're still getting is the 'A blocking operation was interrupted...'?
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 14, 2012 11:38 AM

Hello,

We have tested with the current version which you have given the link.
After made the connection with server and client, (after Tcp.Connect(session); in TcpModel) the value of Tcp.Socket.LocalEndPoint is the same IP address which we have used, as the LocalEndPoint to connect with the server, using our dart dll version 1.1.1.4.

The network map is not ready yet. We are trying to send it to you asap.

thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 14, 2012 1:09 PM

Hello,

There's nothing more I can suggest at this point; we'll wait for the network map.
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 17, 2012 10:18 AM

Hello,

We have send a network map doc. which describe our office network structure.

Please check it once.


thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 17, 2012 2:09 PM

Hello,

We haven't received the map yet; could you try sending it again, along with another message saying you've sent it?
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 18, 2012 3:44 AM

Hello,

We have again sent you a mail into support@dart.com with the Network Map Document.

Please check the Document.


thanks
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 21, 2012 7:13 AM

Hello,

Please let me know, if you received the Network Map.


Thanks
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 21, 2012 8:55 AM

Hello,

We did; I sent an email to the email address we have on record to get connection details to test against your server. Is there a different account we should be replying to? Please send in an email letting us know the address we should continue correspondence with.
rovicohen

From: New York, NY USA
Posts: 24
Member Since: 09/19/05
posted August 21, 2012 12:20 PM

Hello,

According your mail, I have briefly explained some more details regarding Server connection on the updated Network map doc.

You can mail me on the same Id that you have previously sent.

thanks
Reply | General Questions Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX