Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: how to open port #4025

Closed
lzhphantom opened this issue Jun 20, 2024 · 1 comment
Closed

[Bug]: how to open port #4025

lzhphantom opened this issue Jun 20, 2024 · 1 comment

Comments

@lzhphantom
Copy link

Problem description

I run qemu-system-x86_64 -hda alpine.img -boot c -m 6144 -smp 3 -netdev user,id=nde1,hostfwd=tcp::2222-:22,hostfwd=tcp::8848-:8848,hostfwd=tcp::3306-:3306 -device e1000,netdev=nde1,id=d-net1 --vnc :1, namp only scan 80,2222,3306,5901,8022, the 8848 port is missing.

Steps to reproduce the behavior.

alpine.img set 50G
running qemu-system-x86_64 -hda alpine.img -boot c -m 6144 -smp 3 -netdev user,id=nde1,hostfwd=tcp::2222-:22,hostfwd=tcp::8848-:8848,hostfwd=tcp::3306-:3306 -device e1000,netdev=nde1,id=d-net1 --vnc :1
run nmap 127.0.0.1
image

What is the expected behavior?

how to make 8848 port, can be scan out

System information

  • Termux application version:
  • Android OS version:
  • Device model:
@sylirre
Copy link
Member

sylirre commented Jun 20, 2024

Try explicitly set port range for nmap scanning.

nmap -p 1-10000 127.0.0.1

By default nmap scans only common ports (https://nmap.org/book/man-port-specification.html).

There's nothing wrong in your qemu command.

@sylirre sylirre closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants