"scorpion53061" <sc************@yahoo.com> wrote in news:#s2r4S5fDHA.3284
@tk2msftngp13.phx.gbl:
Lucas and all,
Thank you for response.
In the code attached can you tell me how I would:
"LAN server parse and forward the information to the proper client"
This is the server code that the traffic is coming to that is
sending/receiving messages.
Your server code sits on a server that has access to the WAN and LAN
right? Your server uses Port 5000? Port Map Port 5000 in your router to
the machine hosting server code - all incoming requests to port 5000 will
only be sent to the machine with the server.
When an IM user logs in, your server will need to track which users are
online, and associate their internal IP with their username (or some
other unique form of identification).
On your website, you have a list of all users logged in right? Thus, when
an external user submits your form with the appropriate user they want to
contact, your server would do a look up and match the username to the IM
user's internal IP. Once you have the internal IP, it would be very easy
to send the message directly to the client.
So basically your architecture would look like this:
WAN LAN
Web user <-> Web Page <-> || <-> Server <-> IM
|| Is your router/firewall.
See how the Server acts as a proxy, relaying requests between WAN and
LAN?
So in your code, you'll need to beef up server code so you can redirect
the message to a particular user behind the firewall.
BTW, which IM software are you using?
To sum it up, the key is for your server code to know the internal IP
address of the IM client, so that the message can be directed to a
particular IM user.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/