From: Joshua Blanton (jblanton@masaka.cs.ohiou.edu)
Date: 08/03/05
Date: Wed, 3 Aug 2005 19:45:17 -0400 From: Joshua Blanton <jblanton@masaka.cs.ohiou.edu> Subject: tcptrace Re: Trace TCP Port Establish Message-ID: <20050803234517.GA21561@mauser.ipx.ath.cx>
It is not clear to me what this has to do with tcptrace, but I'll take
a stab anyway...
Victor Figueroa wrote:
> When the Player establishes connection to the Server Game in port 2346 info
> local is:
>
> 192.168.1.44 And Port : 1409
>
> I to send following info to the VB.Net Server Program:
>
> 201.240.5.236 And Port : 1409
>
> Function "External IP" works, but the sent Port is incorrect.
I assume this function somehow determines your "external" IP address
(in case the machine is behind a NAT)...?
> The Server the Information of Connection is:
>
> 201.240.5.236 And Port : 10749
>
> Router or PC Gateway establishes another Different Port with the Server
> Game.
>
> Some idea for Tools or Software for get the Port : 10749 in Client ???
If my above assumption is correct, you need to figure out how to
communicate with the machine that is performing the NAT translation
for your subnet, and ask *it* for an outbound port number. There is
no way to determine this in a generic way, without asking the NAT
gateway.
The real question is, why are you writing a protocol that would
require such a thing? In a world where NATs are a fact of life, it's
not a very good idea to write software that requires known ports on
both ends of a TCP connection.
If you insist on doing so, look at the universal plug-and-play stuff
that Microsoft's come up with; most of the cheap "routers" that
provide NAT support uPnP mumble-or-other that will allow you to
traverse NATs (including creating inbound ports for incoming TCP
connections).
--jtb
-- Those other people in the unfree world who pretend to view us with moral disdain might do well to remember that we have achieved this level of luxury by way of political liberty. The free world may be gross, vulgar and immoral, but that is not something that the slave society can fix. Col. Jeff Cooper
----------------------------------------------------------------------------
To unsubscribe, send a message with body containing "unsubscribe tcptrace" to
majordomo@tcptrace.org.
This archive was generated by hypermail 2.1.7 : 08/04/05 EDT