Score:0

I can ping the PC from remote server but can't connect to a port

nu flag

I did my research but I still can't figure out the solution.
I want to connect to port 8888 of my PC from a remote server.
When I ping my PC from a remote server with ping <my ip>, it pings.
When I try to connect to 8888 port using telnet <my ip> 8888, it prints Connection refused.
https://canyouseeme.org/ shows "Connection refused" when I try to connect to my ip, port 8888.
I have a static IP option by ISP. ISP doesn't block the port (at least the support says so).
8888 is listened (sudo lsof -i -P -n | grep 8888).
Wi-Fi Router Firewall is turned off.
DMZ on Wi-Fi Router is turned on.
Ubuntu Firewall is turned off (sudo ufw status prints "Inactive"). I can connect from my PC to itself using telnet 127.0.0.1 8888.

What else am I missing? The next step I'm going to take is to avoid Wi-Fi Router and to connect the PC directly (I need a converter for it, I will get it tomorrow).

HBruijn avatar
in flag
Sounds like the service configured to only listen on localhost rather than external interfaces / IP’s
HBruijn avatar
in flag
Does this answer your question? [What causes the 'Connection Refused' message?](https://serverfault.com/questions/725262/what-causes-the-connection-refused-message)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.