Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

How to Make Your Application Router-Proof

How to write an application that uses UDP without requiring your users to fiddle with their routers

Issue: 2.3 (December/January 2003)
Author: Aaron Ballman
Author Bio: Aaron is the local REAL Software networking guru. In his spare time, he likes to take over small nations using a spork.
Article Description: No description available.
Article Length (in bytes): 8,525
Starting Page Number: 22
RBD Number: 2310
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

Background on Routers

A router is a device that allows you to have multiple machines sharing one connection to the Internet. Basically, a router sits between all the computers on your Local Area Network ( LAN), and delegates where all the incoming network traffic should go.

When a router receives an incoming packet, it needs to determine what computer that packet should go to. So it looks at information in the packet (such as destination port and the protocol of the packet) and decides where to send it. If there are incoming TCP connections or incoming UDP packets, then the router needs to be set up correctly or this information is dropped at the router before any computer ever gets the chance to use it.

As a programmer, routers can be a large problem if your application relies on listening to TCPSockets, or if your application expects to receive UDP packets. This is due to the fact that your end-user must know how to set their router up properly. Sometimes this setup is unavoidable (as in the case of a listening TCPSocket), but there are some tricks you can do so that your users don't have to mess around with their router settings.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com