Strongloop only binds to 127.0.0.1

user1880957

This question is on similar lines as this - Node.js connect only works on localhost - with the exception AFAIK that the only configuration available in Strongloop is the config.json.

I have tried using "0.0.0.0" in the config.json host value as shown below, but the netstat still shows it is bound only to 127.0.0.1

{
  "host": "0.0.0.0",
  "restApiRoot": "/api",
  "host": "0.0.0.0",
  "port": 3000,
  "remoting": {
    "context": {
      "enableHttpContext": false
    },
...
...

This is the log of netstat:

tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:51733           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:3000          0.0.0.0:*               LISTEN

This is my network config:

vagrant@precise64:~/projects/loopback-example-offline-sync/server$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:88:0c:a6
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe88:ca6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7428 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7205 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4740627 (4.7 MB)  TX bytes:3865969 (3.8 MB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:bf:af:6b
          inet addr:33.33.33.10  Bcast:33.33.33.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:febf:af6b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1565 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:101155 (101.1 KB)  TX bytes:238095 (238.0 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:909 errors:0 dropped:0 overruns:0 frame:0
          TX packets:909 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3429927 (3.4 MB)  TX bytes:3429927 (3.4 MB)

I am able to SSH into the vagrant box using 33.33.33.10. Replacing 0.0.0.0 with 33.33.33.10 also did not work. I tried removing the host attribute completely from the config, that didn't work either. UFW is disabled.

I have no other option to try, hence posting on SO :-)

user1880957

Ok. I figured it out. The config is actually driven from Gruntfile.js. It's too confusing. There are too many places the host is defined.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

UTF-8: How does only 0-127 store into a single byte?

From Dev

UTF-8: How does only 0-127 store into a single byte?

From Dev

a{0,1}|b{0,1} matches only 'a', why?

From Dev

0–127 range limit on WEXITSTATUS in old Unix?

From Dev

matlab template matching only for 0 (or 1) in matrix

From Dev

Laravel DB::update only return 0 or 1

From Dev

generate NxN matrix with only 0 and 1

From Dev

Projection Matrix only goes from 0 to 1

From Dev

Raid 0+1 on only 2 disks

From Dev

Check if string has only `0` and `1`

From Dev

Laravel DB::update only return 0 or 1

From Dev

Mpdf : Set 0 margin for page 1 only

From Dev

Python - 0**0 == 1?

From Dev

Get 1, 0, -1 as positive, zero, or negative for an integer with math only

From Dev

Create an array 1*3 containing only one 1 and rest 0

From Dev

Why 0 === -0 is true, but 1/0 === 1/-0 is false?

From Dev

How to specify a variable in JuMP that can only be 0 or 1?

From Dev

Generate random sparse matrix filled with only values 0 or 1

From Dev

Awk only prints (0, 1) if pattern, but I want to print the pattern

From Dev

Why does this angle calculation return only values of 0 or -1?

From Dev

Java: Check if string only contains 1,0 or a dot

From Dev

R, generate number vector only contains 0 and 1, with certain length

From Dev

Cakephp: while inserting tinyint field. Getting only "0" or "1"

From Dev

Probability prediction method of KNeighborsClassifier returns only 0 and 1

From Dev

Awk only prints (0, 1) if pattern, but I want to print the pattern

From Dev

2D Array containing only 0 or 1

From Dev

Sorting of Array containing only 0,1 and 2

From Dev

c++ binary to decimal converter input to only accept 1 or 0

From Dev

Xgboost - Do we have to convert integers to factors if they are only 0 & 1

Related Related

  1. 1

    UTF-8: How does only 0-127 store into a single byte?

  2. 2

    UTF-8: How does only 0-127 store into a single byte?

  3. 3

    a{0,1}|b{0,1} matches only 'a', why?

  4. 4

    0–127 range limit on WEXITSTATUS in old Unix?

  5. 5

    matlab template matching only for 0 (or 1) in matrix

  6. 6

    Laravel DB::update only return 0 or 1

  7. 7

    generate NxN matrix with only 0 and 1

  8. 8

    Projection Matrix only goes from 0 to 1

  9. 9

    Raid 0+1 on only 2 disks

  10. 10

    Check if string has only `0` and `1`

  11. 11

    Laravel DB::update only return 0 or 1

  12. 12

    Mpdf : Set 0 margin for page 1 only

  13. 13

    Python - 0**0 == 1?

  14. 14

    Get 1, 0, -1 as positive, zero, or negative for an integer with math only

  15. 15

    Create an array 1*3 containing only one 1 and rest 0

  16. 16

    Why 0 === -0 is true, but 1/0 === 1/-0 is false?

  17. 17

    How to specify a variable in JuMP that can only be 0 or 1?

  18. 18

    Generate random sparse matrix filled with only values 0 or 1

  19. 19

    Awk only prints (0, 1) if pattern, but I want to print the pattern

  20. 20

    Why does this angle calculation return only values of 0 or -1?

  21. 21

    Java: Check if string only contains 1,0 or a dot

  22. 22

    R, generate number vector only contains 0 and 1, with certain length

  23. 23

    Cakephp: while inserting tinyint field. Getting only "0" or "1"

  24. 24

    Probability prediction method of KNeighborsClassifier returns only 0 and 1

  25. 25

    Awk only prints (0, 1) if pattern, but I want to print the pattern

  26. 26

    2D Array containing only 0 or 1

  27. 27

    Sorting of Array containing only 0,1 and 2

  28. 28

    c++ binary to decimal converter input to only accept 1 or 0

  29. 29

    Xgboost - Do we have to convert integers to factors if they are only 0 & 1

HotTag

Archive