大网数据广告活动
服务器运维问答

Open port 8082 on ubuntu for remote access

· 52CE 我爱测

I need to open port 8082 on my linux box for remote access. I can access the application on port 8082 locally, but not from my other box. Ports 8080 and 8081 are accessible locally as well as remote. 8080 and 8081 have applicatio…

问题原文

原帖链接 · Gyro Gearloose · CC BY-SA 3.0

I need to open port 8082 on my linux box for remote access. I can access the application on port 8082 locally, but not from my other box.

Ports 8080 and 8081 are accessible locally as well as remote. 8080 and 8081 have applications attached that were installed via apt-get, whereas 8082 has a program running from eclipse (own development).

I have seen How to open a 8080 port for an application, with iptables and others like that and followed the instructions, but still could not access 8082 remotely.

One interesting point is that, when doing

sudo iptables -L  --line-numbers

I only see my entries for port 8082, and nothing else! Meanwhile I deleted those entries, too.

ufw status

gives "inactive".

This looks to me as if the old goods of firewalls and crossroads now have new names by which they must be summoned.

Question is, is there really a new set of commands for handling routing and firewall, if yes, how are they used, if no, why are the old commands not working?

已采纳解答

原帖链接 · Tero Kilkanen · CC BY-SA 3.0

Your application is most likely listening only to the localhost network interface, that is 127.0.0.1:8082, therefore it can be reached only from localhost.

You can check this by running netstat -lnp, and checking the Local address column corresponding to your software. If it is 127.0.0.1:8082, this is the reason and you need to change your software to listen to 0.0.0.0:8082 or :::8082.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。