Skip to content

Vue thinks local IP address is global, causing several issues #1616

@kissge

Description

@kissge

Version

3.0.0-rc.2

Reproduction link

https://github.com/kissge/vue-cli-bug

Steps to reproduce

  1. Using vue create to start a project, on a remote machine (say, AWS EC2 instance)
  2. Run npm run serve

What is expected?

What is actually happening?

  • Local IP address is shown in console
  • HMR fails because sockjs tries to connect to local IP address
  • App cannot be accessed from outside the network, so I have to use tricks like ssh port forwarding

I also tried tweaking webpack config from vue.config.js, with no luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions