You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ron Chan <rc...@i-tao.com> on 2007/02/09 20:59:14 UTC

[httpclient] ports

I have an application that uses httpclient to retrieve some xml from another
server via port 8080
it makes a number of calls, one of another, to read off different xml
information

on the logs in the firewall at the other end the calls look like they are
coming from very odd port numbers

it looks something like

123.123.123.123:54838 -> 192.168.2.19:8080
123.123.123.123:54837 -> 192.168.2.19:8080
123.123.123.123:54836 -> 192.168.2.19:8080
123.123.123.123:54835 -> 192.168.2.19:8080
123.123.123.123:54834 -> 192.168.2.19:8080

123.123.123.123 being the server running the httpclient application
192.168.2.19 is the other server behind the firewall

is httpclient causing it to register these port numbers?

many thanks in advance
Ron
-- 
View this message in context: http://www.nabble.com/-httpclient--ports-tf3202472.html#a8892550
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [httpclient] ports

Posted by Michael Wechner <mi...@wyona.com>.
Ron Chan wrote:

>I have an application that uses httpclient to retrieve some xml from another
>server via port 8080
>it makes a number of calls, one of another, to read off different xml
>information
>
>on the logs in the firewall at the other end the calls look like they are
>coming from very odd port numbers
>
>it looks something like
>
>123.123.123.123:54838 -> 192.168.2.19:8080
>123.123.123.123:54837 -> 192.168.2.19:8080
>123.123.123.123:54836 -> 192.168.2.19:8080
>123.123.123.123:54835 -> 192.168.2.19:8080
>123.123.123.123:54834 -> 192.168.2.19:8080
>  
>

I think this is your client (laptop or PC ...)

HTH

Michael

>123.123.123.123 being the server running the httpclient application
>192.168.2.19 is the other server behind the firewall
>
>is httpclient causing it to register these port numbers?
>
>many thanks in advance
>Ron
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [httpclient] ports

Posted by Michael Wechner <mi...@wyona.com>.
Ron Chan wrote:

>thanks for the quick response
>
>so this is normal and not a security concern?
>  
>

yes, that is normal (except if I might completely misunderstand something)

You might want to use "ngrep" to monitor the network traffic and then it 
will become very clear, e.g.

ngrep -d eth0 "" "port 80"

HTH

Michael

>
>
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [httpclient] ports

Posted by Ron Chan <rc...@i-tao.com>.
thanks for the quick response

so this is normal and not a security concern?



-- 
View this message in context: http://www.nabble.com/-httpclient--ports-tf3202472.html#a8893224
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [httpclient] ports

Posted by Steven Keens <ke...@pcigeomatics.com>.
There are two ports used when connecting via TCP: the client's port
(source port) and the server's port (destination port).  In this case
your server is acting as a client and uses a different port (source
ports 54834-54838) each time it connects.  Your client always the hits
the second server on the same port number: 8080.

Cheers,
--
Steven


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org