Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,381
Trophies:
1
I have two nodejs applications (server A and server B) running on Ubuntu Server 16.04, and two clients (client A and client B) that make requests to that servers.

Server A listens for requests from client A on TCP port 3000 and everything works fine.
Server B listens for requests from client B on port 3001. In this case, client B never manages to connect (Error: timeout).
If server B listens on port 3000, client B also works fine. But client A fails to connect to server A on port 3001.

Test from localhost:

Code:
lsof -i -P -n | grep LISTEN
node\x20/ 1409    root  23u  IPv6  18686      0t0  TCP *:3001 (LISTEN)
node\x20/ 1764    root  23u  IPv6  24445      0t0  TCP *:3000 (LISTEN)

Code:
[email protected]:~# nmap localhost
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
53/tcp  open  domain
80/tcp  open  http
110/tcp  open  pop3
143/tcp  open  imap
443/tcp  open  https
3000/tcp open  ppp
3001/tcp open  nessus
3306/tcp open  mysql
8080/tcp open  http-proxy
Test from remote machine:

Code:
nmap -P0 82.223.25.XXX
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
443/tcp  open  https
3000/tcp open  ppp
8080/tcp open  http-proxy

nmap -p 3001 82.223.25.XXX
PORT    STATE    SERVICE
3001/tcp filtered nessus
Firewall:

Code:
[email protected]:~# iptables -L
Chain INPUT (policy ACCEPT)
target    prot opt source              destination       
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:3001

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination       

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination 
     
[email protected]:~# ufw status
Status: inactive
I have tried to open ports with ufw without success.
06-08-2021, 06:38 PM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [ubuntu] Wifi fails to connect on iMac running 20.04 Gerhard1 0 31 06-07-2021 09:09 AM
Last Post: Gerhard1
  [server] Problem to connect to outside networks Ice Queen 0 27 06-02-2021 02:09 PM
Last Post: Ice Queen
  Google Authenticator for console port jsmelawson78 0 13 05-29-2021 05:23 AM
Last Post: jsmelawson78
  [ubuntu] How do I get access to the Parallel port input and using bash scripts? KevynB1947 0 16 05-05-2021 01:19 AM
Last Post: KevynB1947
  [ubuntu] Connect 3 Monitors keiraleach 0 35 04-15-2021 11:56 AM
Last Post: keiraleach
  port state Filtered service HTTP server ubuntu 16.04 CynthiaA1962 0 49 03-29-2021 08:00 PM
Last Post: CynthiaA1962
  [lubuntu] RTL8188FU - no automatic connect Fganly216 0 39 02-19-2021 04:18 PM
Last Post: Fganly216
  [ubuntu] Command that give the number of internet packets per port Bergerac 0 34 01-13-2021 06:38 PM
Last Post: Bergerac
  Ubuntu 20.04 LTS doesn't connect to internet mw7smartc 0 30 12-04-2020 06:02 AM
Last Post: mw7smartc
  Ubuntu 20.04 LTS does not connect to WiFi MarvinR1935 0 56 12-03-2020 05:55 AM
Last Post: MarvinR1935

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2021