This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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!