File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes URLConnection and IP address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "URLConnection and IP address" Watch "URLConnection and IP address" New topic

URLConnection and IP address

FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
1. MY PC uses DSL to connect to internet. If I use "URLConnection" to connect to a web site, how does the server of that site interpret the IP address of my PC (where the request is from) ?

2. Generally speaking, when a PC uses DSL, is its IP address dynamically assigned ?
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
Your ISP must have assigned an IP address to your DSL router, which is the one that is ultimately used in the Internet.
Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518

In the future, please don't crosspost. Having multiple threads on the same subject is a waste of everyone's time.

I agree. Here's the link:
subject: URLConnection and IP address
It's not a secret anymore!