running server code on ubuntu on qemu
by peterisaac from LinuxQuestions.org on (#5H8KG)
i am very new to this so i am not sure exactly what to do, i am trying to run a simple socket program as server on linux kernel on qemu , using the following:
qemu-system-arm -M versatilepb -m 256 -kernel zImage -dtb versatile-pb.dtb -drive file=rootfs.ext2,if=scsi,format=raw -append "root=/dev/sda console=ttyAMA0,115200" -serial stdio -net nic,model=rtl8139 -net user -display none -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5000-:5000
i am forwarding the host port 5000 to the guest 5000
and running the server code on qemu and running client code on the host
but with both using port number 5000.
and i am still unable to reach it.
i just want any way i could possibly run the server code on the guest and the client on the host
thank you in advance.


qemu-system-arm -M versatilepb -m 256 -kernel zImage -dtb versatile-pb.dtb -drive file=rootfs.ext2,if=scsi,format=raw -append "root=/dev/sda console=ttyAMA0,115200" -serial stdio -net nic,model=rtl8139 -net user -display none -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5000-:5000
i am forwarding the host port 5000 to the guest 5000
and running the server code on qemu and running client code on the host
but with both using port number 5000.
and i am still unable to reach it.
i just want any way i could possibly run the server code on the guest and the client on the host
thank you in advance.