VirtualBox

Ticket #19878 (closed defect: fixed)

Opened 3 months ago

Last modified 5 weeks ago

uartmode tcpserver <port> only accepts a connection once => fixed in SVN/next maintenance

Reported by: Noci Owned by:
Component: uart Version: VirtualBox 6.1.14
Keywords: Cc:
Guest type: other Host type: Linux

Description

When connecting to a port setup as tcpserver 2023 a connection will only succeed once. After disconnect no new conenction can be established. Untill the VM is restarted, then a connection only works once again.

It would be helpful if multiple connections can be made. (not at once, in a row). So start listening again after a close of the socket? (Virtualbox 6.1.12r139181 ) Vbox ruuning in a Headless setup.

Attachments

close_and_reconnect.pcap Download (4.1 KB) - added by Noci 3 months ago.
Network capture.

Change History

comment:1 Changed 3 months ago by Noci

Error in the LOG: (when reconnecting) 68:05:47.142762 DrvTCP0: only single connection supported

Netstat: (2020 = COM1, 2021 = COM2)

tcp        0      0 0.0.0.0:2020            0.0.0.0:*               LISTEN      11044/VBoxHeadless
tcp        0      0 0.0.0.0:2021            0.0.0.0:*               LISTEN      11044/VBoxHeadless
tcp        0      0 172.20.10.83:2020       172.27.10.183:59765     ESTABLISHED 11044/VBoxHeadless

PC that had the connection (172.27.10.183) has been rebooted, the remote application (putty) was disconnected a day before. The connection is still alive. as far as VBox is concerned.

Last edited 3 months ago by Noci (previous) (diff)

Changed 3 months ago by Noci

Network capture.

comment:2 Changed 3 months ago by Noci

Conversation in capture:

Username: ^]
telnet> close
Connection closed.
[root@its083 Logs]# netstat -antp | grep VB  # after conversation
tcp        0      0 0.0.0.0:2020            0.0.0.0:*               LISTEN      11044/VBoxHeadless
tcp        0      0 0.0.0.0:2021            0.0.0.0:*               LISTEN      11044/VBoxHeadless
tcp        0      0 0.0.0.0:2022            0.0.0.0:*               LISTEN      36239/VBoxHeadless
tcp        0      0 0.0.0.0:2023            0.0.0.0:*               LISTEN      36239/VBoxHeadless
tcp        0    743 172.20.10.83:2020       172.27.10.183:59765     ESTABLISHED 11044/VBoxHeadless
[root@its083 Logs]#
[root@its083 Logs]# telnet localhost 2021
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@its083 Logs]# telnet localhost 2021
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@its083 Logs]# netstat -antp | grep VB
tcp        0      0 0.0.0.0:2020            0.0.0.0:*               LISTEN      11044/VBoxHeadless
tcp        0      0 0.0.0.0:2021            0.0.0.0:*               LISTEN      11044/VBoxHeadless
tcp        0      0 0.0.0.0:2022            0.0.0.0:*               LISTEN      36239/VBoxHeadless
tcp        0      0 0.0.0.0:2023            0.0.0.0:*               LISTEN      36239/VBoxHeadless
tcp        0    743 172.20.10.83:2020       172.27.10.183:59765     ESTABLISHED 11044/VBoxHeadless

comment:3 Changed 2 months ago by aeichner

  • Summary changed from uartmode tcpserver <port> only accepts a connection once to uartmode tcpserver <port> only accepts a connection once => fixed in SVN/next maintenance

Thanks for the report, will be fixed in the next maintenance release! Until then you can do a "uartmode disconnected" and then "uartmode tcpserver <port>" to be able to connect to the VM again without having to restart it.

comment:4 Changed 2 months ago by Noci

Was a bit of a search actually the commands are:

VBoxManage controlvm VMNAME changeuartmodeN disconnect
VBoxManage controlvm VMNAME changeuartmodeN tcpserver <port>

comment:5 Changed 5 weeks ago by arudnev

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 6.1.16

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use