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

Port Forwarding Issue in QEMU #18

Open
noci0001 opened this issue Mar 19, 2024 · 2 comments
Open

Port Forwarding Issue in QEMU #18

noci0001 opened this issue Mar 19, 2024 · 2 comments

Comments

@noci0001
Copy link

While debugging the companion app I ran Leda with QEMU multiple times with no problems until I experienced a problem with port-forwarding.

The error that appears is the following:

Could not set up host forwarding rule 'tcp::1883-:1883'

After some troubleshooting the easiest way to fix it is to change the problematic port that is setup in the run-leda.sh

I would add a section maybe in the troubleshooting section like so:

QEMU Forwarding rule problem: Could not set up host forwarding rule 'tcp::1883-:1883'

QEMU might fail to run because of port-forwarding, in order to fix this problem the problematic port (in this case 1883) needs to be changed.
Therefore, locate the script inside the leda directory
then, locate the following line inside run-leda.sh:
-net user,hostfwd=tcp::2222-:22,hostfwd=tcp::1880-:1880,hostfwd=tcp::1883-:1883,hostfwd=tcp::8888-:8888,hostfwd=tcp::30555-:30555 \
and change the problematic port to a different one like so:
-net user,hostfwd=tcp::2222-:22,hostfwd=tcp::1880-:1880,hostfwd=tcp::1884-:1884,hostfwd=tcp::8888-:8888,hostfwd=tcp::30555-:30555 \
The program should now work properly

@eriksven
Copy link
Contributor

Just to be sure, could it be that your tried to run Leda twice on the same host machine? That would explain why the port 1883 was already blocked. Or there was a problem with the shutdown of one of your previous Eclipse Leda instances which caused the port to still be in use.

@noci0001
Copy link
Author

Yeah I would suspect the suspect that there was a problem with the shutdown of one of my previous Eclipse Leda instances.

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