Re: At a loss figuring out if an IP is on LAN or INET
- From: Chris Chilvers <keeper@xxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 15:46:50 +0100
On Sat, 29 Apr 2006 08:22:57 -0600, "Terry Olsen" <tolsen64@xxxxxxxxxxx>
wrote:
I don't think I have to worry about this at all. Since I don't control the
corporate firewall at work (port forwarding & such), I wouldn't be able to
communicate outside the company boundaries anyway. I would simply send my
local IP (10.x.x.x) to all other peers.
Why do you have to send 'your ip' to the server. Can the server not just
look at the IP and port it sees from the incomming tcp connection? If
you need a new connection between the two clients:
* client A could tells the server it is ready to accept a connection on
port X.
* The server can now tell client A to expect a connection from client B
* The server now tells client B, client A's ip address (from the tcp
connection) and port X
* Client B now trys to connect to client A on the give IP and port
This could fail if there is a firewall / NAT, but no way to solve this
unless you can change the NAT settings to forward your chosen port. To
make it easier you could let the client's set what port rages they use
for these connection in a config somewhere.
.
- Follow-Ups:
- Re: At a loss figuring out if an IP is on LAN or INET
- From: Chris Chilvers
- Re: At a loss figuring out if an IP is on LAN or INET
- References:
- At a loss figuring out if an IP is on LAN or INET
- From: Terry Olsen
- Re: At a loss figuring out if an IP is on LAN or INET
- From: david
- Re: At a loss figuring out if an IP is on LAN or INET
- From: Terry Olsen
- Re: At a loss figuring out if an IP is on LAN or INET
- From: david
- Re: At a loss figuring out if an IP is on LAN or INET
- From: Terry Olsen
- At a loss figuring out if an IP is on LAN or INET
- Prev by Date: Re: At a loss figuring out if an IP is on LAN or INET
- Next by Date: Re: At a loss figuring out if an IP is on LAN or INET
- Previous by thread: Re: At a loss figuring out if an IP is on LAN or INET
- Next by thread: Re: At a loss figuring out if an IP is on LAN or INET
- Index(es):
Relevant Pages
|
Loading