Re: At a loss figuring out if an IP is on LAN or INET



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.
.



Relevant Pages

  • Re: Passive means what during FTP?
    ... > server or the client that opens the data connection. ... the client tells the server what IP ... Vsftpd drops root after binding to port 21 entirely, ...
    (comp.os.linux.setup)
  • Re: Still cant connect to RWW or OWA remotely
    ... it certainly appears to be something about the SBS configuration. ... Meridian.local Ethernet adapter Local Area Connection: ... Windows SMALL BUSINESS SERVER 2003 Windows IP Configuration ... 192.168.254.254) directly to a port on the router and then ...
    (microsoft.public.windows.server.sbs)
  • Re: Still cant connect to RWW or OWA remotely
    ... it certainly appears to be something about the SBS configuration. ... Meridian.local Ethernet adapter Local Area Connection: ... Windows SMALL BUSINESS SERVER 2003 Windows IP Configuration ... 192.168.254.254) directly to a port on the router and then ...
    (microsoft.public.windows.server.sbs)
  • Re: forwarded-tcpip vs. direct-tcpip
    ... "direct-tcpip" is initiated by the client at any time with no ... network connection to some address and port number, ... "forwarded-tcpip" is sent by the server to the client after the ...
    (comp.security.ssh)
  • Re: Definition of a socket on Suns website
    ... a server "listens" on some port. ... once a connection is established with client A, ... the server accepts the connection. ...
    (comp.lang.java.programmer)

Loading