This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226087 - Running project on Android device opens incorrect IP in Chrome
Summary: Running project on Android device opens incorrect IP in Chrome
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 21:23 UTC by Vladimir Riha
Modified: 2013-12-13 13:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-02-13 21:23:43 UTC
This is likely issue for all Debian based systems. When I run project in Android device, the opened page has URL with starting 127.0.1.1:8383/[rest is OK]. 

As a result, IDE does not know about any "running" page (no inspection/debugging) and page in Android's Chrome says:

"Google Chrome could not connect to 127.0.1.1:8383" 


Nothing special in IDE or IDE log.

The problem is the IP address, /etc/hosts contains following:

127.0.0.1	localhost
127.0.1.1	lada-ThinkPad-R400

but ifconfig returns correct IP which my PC has in local network. So if PC has local IP like 192.168.X.X and I if replace with it the incorrect IP in mobile Chrome, I can see the expected page but again w/o inspection features


Tested in Ubuntu 12.04 32b and Ubuntu 12.10 64b. I found some explanations for usage of 127.0.1.1, for instance

http://serverfault.com/questions/363095/what-does-127-0-1-1-represent-in-etc-hosts




Product Version: NetBeans IDE Dev (Build web-main-9887-on-20130213)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
Runtime: Java(TM) SE Runtime Environment 1.7.0-b147
System: Linux version 3.5.0-23-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Jan Becicka 2013-02-14 07:56:00 UTC
Linux specific
Comment 2 Jan Becicka 2013-02-14 15:54:08 UTC
changeset:   246130:2a0d4eabb117
tag:         tip
user:        Jan Becicka <jbecicka@netbeans.org>
date:        Thu Feb 14 11:51:27 2013 +0100
summary:     Issue #226087 - Running project on Android device opens incorrect IP in Chrome
Comment 3 Quality Engineering 2013-02-16 01:53:37 UTC
Integrated into 'main-golden', will be available in build *201302152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2a0d4eabb117
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #226087 - Running project on Android device opens incorrect IP in Chrome
Comment 4 Vladimir Riha 2013-02-17 20:19:13 UTC
Thanks, verified, Chrome opens with correct IP


Product Version: NetBeans IDE Dev (Build web-main-9920-on-20130217)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
Runtime: Java(TM) SE Runtime Environment 1.7.0-b147
System: Linux version 3.5.0-23-generic running on amd64; UTF-8; en_US (nb)