Skip to content

Question: Why 'grunt serve' binds to localhost host ONLY? #1114

@verrol

Description

@verrol

I am new to Angular-fullstack, but I have used a number of other generators to get here. Why is it, that with AFS, I can't do 'grunt serve' and then load the app from another computer in my network?

When I run nmap from another host to see which ports are opened on the computer where my app is running. Port 9000 doesn't show up, even though the browser on the computer can certainly use it.

I then modified the development env to use my computer IP address, the one I get from the router. It builds, port 9000 is visible from outside, but it doesn't work.

Neither too does 'grunt serve:dist' work even on the localhost. I get a number of 404 error as the browser tries to fetch the page from localhost.

I guess I am missing something simple. But I never had any of these problems with the other generators, but I really would like to use AFS instead of MEAN.js.

I would appreciate any pointer on this issue or steps to fix. Oh, I did some googling and saw others have had the same problem.

Thanks.

.v

PS: If this was done intentionally, why? Since it prevents users from testing on multiple devices during development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions