Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


pseudogeek2009

66 posts

Master Geek
+1 received by user: 9


#97675 19-Feb-2012 22:35
Send private message

Hello,

I am developing a TCP/IP client and server application to communicate via the internet but I am having disconnection issues. I have tested on the LAN and the application works fine without any disconnection but the disconnection issues happens when I use it remotely. The server is an embedded platform using PIC24F and the client is a simple TCP/IP client from codeproject. I am using port 3002 and have setup my router to port forward to the IP address of the embedded platform. I have ping it from the client PC and that seems fine. I have also check if the port is open by using www.canyouseeme.org.

Any ideas?

Paul

Create new topic
pseudogeek2009

66 posts

Master Geek
+1 received by user: 9


  #583830 20-Feb-2012 12:28
Send private message

Solved.



freitasm
BDFL - Memuneh
80646 posts

Uber Geek
+1 received by user: 41029

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #583834 20-Feb-2012 12:30
Send private message

It would be good to give a brief explanation, if anyone searching for this lands on this page...




Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


pseudogeek2009

66 posts

Master Geek
+1 received by user: 9


  #584276 21-Feb-2012 00:00
Send private message

Default keep alive timeout in the Microchip library is 30ms. Increase the timeout to resolve the issue and it is working fine.



pseudogeek2009

66 posts

Master Geek
+1 received by user: 9


  #598176 21-Mar-2012 12:58
Send private message

Now I am having an issue with disconnection after several hours of operation. I was wondering if that is ISP issue. I am currently using dynamic dns setup on one of the router and port forward to a static IP address setup on the server. My client sends a request every 5 minutes. After over 4 hours of running the application, the disconnection happens. Is this an ISP issue (Orcon)? 

I know in real-life situation, the software will have to cope with the reconnection. Currently the embedded server copes with the disconnection by using the keep alive timers and reinitialise the TCP/IP stack.

Ragnor
8279 posts

Uber Geek
+1 received by user: 585

Trusted

  #598241 21-Mar-2012 14:47
Send private message

pseudogeek2009: Now I am having an issue with disconnection after several hours of operation. I was wondering if that is ISP issue. I am currently using dynamic dns setup on one of the router and port forward to a static IP address setup on the server. My client sends a request every 5 minutes. After over 4 hours of running the application, the disconnection happens. Is this an ISP issue (Orcon)? 

I know in real-life situation, the software will have to cope with the reconnection. Currently the embedded server copes with the disconnection by using the keep alive timers and reinitialise the TCP/IP stack.


Probably the best way to investigate would to be capture a log of the traffic with wireshark at the client and server ends
http://www.wireshark.org/

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.