question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App is using 172.16.123.1 as the IP address, which isn't on the network I'm connected to.

See original GitHub issue

Description

When I run yarn start Expo starts running my app on 172.16.123.1:19001, which isn’t the IP I’m using on the only network I’m connected to. Because of this I can’t connect with my device.

Expected Behaviour

I ran yarn start and was expecting it to start my app on my local machine, listening on the my network interface so I can connect from my phone.

Observed Behavior

It started on 172.16.123.1:19001 which isn’t the IP of my machine on the only network I’m connected to. image

My IP address is 172.46.0.206 and I’m not connected to any VPN, nor do I have Docker or any virtualisation software running that may create a dummy network adapter.

image

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts:
grimoire@0.1.0 /Users/harry/dev/haegin/grimoire/grimoire
└── react-native-scripts@0.0.31 
  • npm ls react-native:
grimoire@0.1.0 /Users/harry/dev/haegin/grimoire/grimoire
└── react-native@0.44.3 
  • npm ls expo:
grimoire@0.1.0 /Users/harry/dev/haegin/grimoire/grimoire
└── expo@17.0.0 
  • node -v: v8.1.0
  • npm -v:5.0.3
  • yarn --version: 0.19.1
  • watchman version:4.7.0

Also specify:

  1. Operating system: image

  2. Phone/emulator/simulator & version: OnePlus 3 but I can’t connect it because of this bug.

Reproducible Demo

create-react-native-app grimoire cd grimoire yarn start

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
MrLujecommented, Jan 28, 2018

Or this one, which uses env variables

1reaction
itsAmrcommented, Nov 25, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

App is using 172.16.123.1 as the IP address, which isn't on the ...
When I run yarn start Expo starts running my app on 172.16.123.1:19001, which isn't the IP I'm using on the only network I'm...
Read more >
How to fix your network when you see 'Another device is using ...
Start with your router. Read the manual, log in to its administrative interface, and check its settings. It may show you a list...
Read more >
Access host (not vm) from inside container
Be able to access an ipv4 or ipv6 address, or some DNS/hostname from inside a container which can access the host (not the...
Read more >
Azure App Service Web SSH Error with Docker Compose ...
SSH attempts to connect to an IP address that is not assigned to either Gunicorn ... From Docker Nginx log showing IP address...
Read more >
If your Mac isn't connecting to the internet over Wi-Fi
If your Mac is connected to a Wi-Fi network but can't connect to websites, email, and all other internet services, try these solutions....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found