nx serve does not bind to ip address
See original GitHub issueHey guys,
I am developing a React webapp using Nx. I require this app to test on phone. But I cannot access it over wi-fi using the ip address. Is there a way to ensure nx binds to 0.0.0.0
instead of localhost
so that I can access it using http://192.168.0.102:4200 ?
This is how netstat
looks like
tcp4 0 0 192.168.0.102.63776 104.21.212.16.https ESTABLISHED
tcp4 0 0 localhost.4200 localhost.63645 ESTABLISHED
tcp4 0 0 localhost.63645 localhost.4200 ESTABLISHED
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
NX node: set bind/connect ip - NoMachine Forums
Hello ponch, NoMachine require associating local IP address 127.0.0.1 with localhost hostname. Please check if you can (temporarily) set the ...
Read more >How to host NextJS app on 0.0.0.0:3000 with nrwl/next (not ...
I'm using nrwl/nx and NextJS even if the port is correct the host is not. next.js · nrwl-nx · nomachine-nx · Share.
Read more >Cisco Nexus 9000 Series NX-OS Security Configuration ...
In previous releases, DHCP snooping static binding entries allow only one IP address with the same MAC address and VLAN. VXLAN supports DHCP ......
Read more >nslookup Failure - domain name system - Server Fault
As part of the IP address assignment, your DHCP client is rewriting ... This "other" DNS server does not know about your domain....
Read more >K18522641: Overview of the DNS profile (14.x and later) - AskF5
You cannot add a DNS profile to a virtual server that has a ... Disabled: The BIG-IP system does not map IPv4 addresses...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can you try running this command, and let me know how it goes?
Small correction: “hostname”: “0.0.0.0” should be “host”: “0.0.0.0” to be picked up by the npm start command. See Below:
Hope this helps.