[nodejs] Web server on a FX30S

Hello,

I run a nodejs server on a FX30S but I don’t know how to have access to it trought a browser on a linux machine connected with USB cable.

FX30S don’t have RJ45 plug so I guess I can’t configure my interfaces the same way than a FX30 with :
iptables -l INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT

Is the “eth0” that I have to change ?

BR,
Dylan Lemasson

Hi Dylan,
Have you enable CDC ECM on FX30S? Or have you got usb0 interface in ifconfig return?

If yes, can you try set “usb0”?

Thx

Hi Lotam,

I have usb0 interface set so I guess Ethernet over USB is also set.

root@fx30s:~# ifconfig
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:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr EA:49:06:E3:B4:FA
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::e849:6ff:fee3:b4fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:368 errors:0 dropped:0 overruns:0 frame:0
TX packets:182 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32092 (31.3 KiB) TX bytes:22091 (21.5 KiB)

BR,
Dylan Lemasson

Hi Dylan,

In that case, the Linux PC should able to access FX30S via USB ECM, so I guess the iptables rule to enable HTTP should be ?

iptables -l INPUT -i usb0 -p tcp -m tcp --dport 80 -j ACCEPT