Hello guys, I am runing an ubuntu 22.04 VM on Win10 host. I tried to ping my host from the VM, it worked. So I thought the network configuration is right. But after I that I tried ''telnet'' the host and it failed with:''telnet: Unable to connect to remote host: Connection refused'' .
Then I turned firewall off (both VM and host side), and things didn't change.
How can I fix the problem
telnet: Unable to connect to remote host: Connection refused
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: telnet: Unable to connect to remote host: Connection refused
- Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Attachments tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
- Start the VM from full normal shutdown, not save-state.
- In both host and VM OS's, run the correct command from the following in the Command Prompt or Terminal:
Windows:
ipconfig /all
route print
Linux:
ifconfig or ip address
route -n or ip route
Mac OS:
ifconfig
netstat -rn
Post the outputs, label which is which. - In both host and VM OS's, ping 8.8.8.8. Post the outputs, label which is which.
- Shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.
- Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. In the "Logs" subfolder, zip the VM's "vbox.log", and post the zip file, using the forum's Attachments tab. (Configure your host OS to show all extensions so you can find the "vbox.log", not "vbox.log.1", etc.)
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: telnet: Unable to connect to remote host: Connection refused
Did you install a TELNET server on the Windows 10 host?
If not, it obviously cannot work, since Windows 10 doesn't provide a TELNET server itself.
If yes, install the Windows 10 TELNET client and make it work on the host alone (e.g. "telnet 127.0.0.1 23"). If it connects from the host to itself, then you can start looking at VirtualBox.
If not, it obviously cannot work, since Windows 10 doesn't provide a TELNET server itself.
If yes, install the Windows 10 TELNET client and make it work on the host alone (e.g. "telnet 127.0.0.1 23"). If it connects from the host to itself, then you can start looking at VirtualBox.
Re: telnet: Unable to connect to remote host: Connection refused
Hello,thanks for the response, here's the output from host OS
- Attachments
-
- host_win10_route-print.png (29.3 KiB) Viewed 2873 times
-
- host_win10_ping8888.png (8.62 KiB) Viewed 2873 times
-
- host_win10_ipconfig-all.png (30.05 KiB) Viewed 2873 times
Last edited by LF123 on 12. Feb 2024, 14:07, edited 1 time in total.
Re: telnet: Unable to connect to remote host: Connection refused
And here's the output from VM
- Attachments
-
- VM-ubuntu_ping888.png (27.51 KiB) Viewed 2872 times
-
- VM_ubuntu-ifconfig.png (74.78 KiB) Viewed 2872 times
-
- VM_ubuntu_route-n.png (24.25 KiB) Viewed 2872 times
Re: telnet: Unable to connect to remote host: Connection refused
And here's the Vbox logs
- Attachments
-
- Logs.zip
- (229.22 KiB) Downloaded 33 times
Re: telnet: Unable to connect to remote host: Connection refused
Here's the Vbox file
- Attachments
-
- XilinxUbuntu.zip
- (2.64 KiB) Downloaded 51 times