[
https://issues.apache.org/jira/browse/NUTCH-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811568#comment-13811568
]
Yasin Kılınç commented on NUTCH-1360:
-------------------------------------
following codes are making socket connection, in HttpResponse.java
// connect
String sockHost = http.useProxy() ? http.getProxyHost() : host;
int sockPort = http.useProxy() ? http.getProxyPort() : port;
InetSocketAddress sockAddr = new InetSocketAddress(sockHost, sockPort);
socket.connect(sockAddr, http.getTimeout());
and we can get host ip address via this code
sockAddr.getAddress().getHostAddress()
> Suport the storing of IP address connected to when web crawling
> ---------------------------------------------------------------
>
> Key: NUTCH-1360
> URL: https://issues.apache.org/jira/browse/NUTCH-1360
> Project: Nutch
> Issue Type: New Feature
> Components: protocol
> Affects Versions: nutchgora, 1.5
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Minor
> Fix For: 1.8
>
> Attachments: NUTCH-1360-nutchgora-v2.patch,
> NUTCH-1360-nutchgora.patch, NUTCH-1360-trunk.patch, NUTCH-1360v3.patch
>
>
> Simple issue enabling us to capture the specific IP address of the host which
> we connect to to fetch a page.
--
This message was sent by Atlassian JIRA
(v6.1#6144)