Re: TCP/IP file transfer and a router




<aca04pds@xxxxxxxxxx> wrote in message
news:1177256895.141267.214920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi

I'm trying to create a Java program that can send a file from 1
Windows PC to another over a TCP/IP connection. As many people use
[wireless] routers, how can I create a TCP connection to PCs that are
connected to the internet via a router? The router has an IP and then
each PC connected to that has its own IP for their local network. How
would the router know which PC is the right one to send the data to?

Is this a peer-to-peer network, or do you have a central server? The latter
would be much easier to manage.

In a peer-to-peer configuration, you might need to dynamically configure the
router to open and close ports, and so on. Several standards exist for doing
things like this, but it is far from foolproof. UPnP (Universal Plug 'n'
Play) is one, but everyone would need routers that support the protocol.
Furthermore, UPnP is widely regarded as a security risk, and enabling it is
not recommended. Finally, you might discover that successfully configuring
UPnP from your application is a serious development challenge in itself.

Depending on how loosely coupled your network is, a Virtual Private Network
(VPN) would allow you to treat the entire collection of PCs as if they were
on the same LAN, considerably simplifying your development problem. But,
creating and maintaining a VPN might be problematic if the relationships
between peers is casual or ad-hoc.


.



Relevant Pages

  • Re: Using Remote Desktop From an SBS Domain
    ... After I thought about needing 3389 forwarded on my router to allow me to ... Remote Desktop "out" from a workstation on my SBS network to a host XP ... Hopefully next week I can attempt a connection while my ISP watches the ...
    (microsoft.public.windows.server.sbs)
  • Re: Connection from remote computer to network SQL Server
    ... There is no firewall on the W2K machine acting as the SQL server. ... I tried making the SQL machine a "trusted" on the router. ... connection works. ... To find the IP address of your computer inside the network, ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Unable to obtain a server- assigned IP address Try again later or enter an IP address in Net
    ... I can go to Control Panel - Network and Internet Connections - ... If yours is not a subset of your router, ... I have a LINKSYS router (4 port connection) - I have my cable modem ...
    (microsoft.public.pocketpc)
  • Re: Connection from remote computer to network SQL Server
    ... There is no firewall on the W2K machine acting as the SQL server. ... I tried making the SQL machine a "trusted" on the router. ... connection works. ... To find the IP address of your computer inside the network, ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Loss of Connectivity on Only One PC on a LAN
    ... When you ran the Network Setup Wizard, ... The original setup of the LAN was done entirely by the user of the other PC on that LAN in July. ... I use a LAN connection which consists of two PCs each connected to a Linksys BEFSR 41 Router. ...
    (microsoft.public.windowsxp.network_web)