VirtualBox

Opened 4 years ago

Closed 4 years ago

Last modified 14 months ago

#19878 closed defect (fixed)

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 (1)

close_and_reconnect.pcap (4.1 KB ) - added by Noci 4 years ago.
Network capture.

Download all attachments as: .zip

Change History (6)

comment:1 by Noci, 4 years ago

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.

Version 1, edited 4 years ago by Noci (previous) (next) (diff)

by Noci, 4 years ago

Attachment: close_and_reconnect.pcap added

Network capture.

comment:2 by Noci, 4 years ago

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 by aeichner, 4 years ago

Summary: uartmode tcpserver <port> only accepts a connection onceuartmode 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 by Noci, 4 years ago

Was a bit of a search actually the commands are:

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

comment:5 by arudnev, 4 years ago

Resolution: fixed
Status: newclosed

Fixed in 6.1.16

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette