Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phonegap serve has a tendency to return unknown as the ip address #107

Closed
timkim opened this issue Jan 26, 2015 · 1 comment
Closed

phonegap serve has a tendency to return unknown as the ip address #107

timkim opened this issue Jan 26, 2015 · 1 comment

Comments

@timkim
Copy link
Contributor

timkim commented Jan 26, 2015

On osx, hit phonegap serve. Most of the time it will return the ip address of the machine. Other times, it returns unknown.

$ phonegap serve
[phonegap] starting app server...
[phonegap] listening on unknown:3000
[phonegap] 
[phonegap] ctrl-c to stop the server
mwbrooks added a commit that referenced this issue Feb 3, 2015
This is a difficult issue to resolve, beacuse I cannot
reproduce it. I've added a following fallback logic:

- use req.connection.localAddress
- use req.socket.localAddress
- use first network adapter address
@mwbrooks
Copy link
Collaborator

mwbrooks commented Feb 3, 2015

Published as connect-phonegap@0.14.8

Available in phonegap@4.2.0-0.24.2

@mwbrooks mwbrooks closed this as completed Feb 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants