telnet: Unable to connect to remote host: Connection refused

Discussions about using Windows guests in VirtualBox.
Post Reply
LF123
Posts: 5
Joined: 8. Feb 2024, 19:52

telnet: Unable to connect to remote host: Connection refused

Post by LF123 »

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 :D
scottgus1
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

Post by scottgus1 »

  1. 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.)
     
  2. Start the VM from full normal shutdown, not save-state.
     
  3. 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.
     
  4. In both host and VM OS's, ping 8.8.8.8. Post the outputs, label which is which.
     
  5. 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.
     
  6. 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.)
fth0
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

Post by fth0 »

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.
LF123
Posts: 5
Joined: 8. Feb 2024, 19:52

Re: telnet: Unable to connect to remote host: Connection refused

Post by LF123 »

Hello,thanks for the response, here's the output from host OS :D
Attachments
host_win10_route-print.png
host_win10_route-print.png (29.3 KiB) Viewed 2854 times
host_win10_ping8888.png
host_win10_ping8888.png (8.62 KiB) Viewed 2854 times
host_win10_ipconfig-all.png
host_win10_ipconfig-all.png (30.05 KiB) Viewed 2854 times
Last edited by LF123 on 12. Feb 2024, 14:07, edited 1 time in total.
LF123
Posts: 5
Joined: 8. Feb 2024, 19:52

Re: telnet: Unable to connect to remote host: Connection refused

Post by LF123 »

And here's the output from VM
Attachments
VM-ubuntu_ping888.png
VM-ubuntu_ping888.png (27.51 KiB) Viewed 2853 times
VM_ubuntu-ifconfig.png
VM_ubuntu-ifconfig.png (74.78 KiB) Viewed 2853 times
VM_ubuntu_route-n.png
VM_ubuntu_route-n.png (24.25 KiB) Viewed 2853 times
LF123
Posts: 5
Joined: 8. Feb 2024, 19:52

Re: telnet: Unable to connect to remote host: Connection refused

Post by LF123 »

And here's the Vbox logs
Attachments
Logs.zip
(229.22 KiB) Downloaded 33 times
LF123
Posts: 5
Joined: 8. Feb 2024, 19:52

Re: telnet: Unable to connect to remote host: Connection refused

Post by LF123 »

Here's the Vbox file
Attachments
XilinxUbuntu.zip
(2.64 KiB) Downloaded 51 times
Post Reply