I use AWS Ubuntu Instance and try to open port 8080. This is my "Security Groups" settings:
I have added port 8080 to iptables
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Firewall is disabled
sudo ufw status verbose
Status: inactive
Nmap:
nmap localhost
Starting Nmap 7.60 ( https://nmap.org ) at 2020-05-04 17:10 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00012s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
22/tcp open ssh
Only port 22 (SSH) is enabled. Do you have any ideas how I can open 8080 port?
Are you running any service on port 8080?
Looks to me like no service is actually running on that port.
Try running netcat -l 8080
then attempt to connect to it to validate that it is running.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.