Help: Occasional connection reset error when accessing port 27017 via Http

Hi,
I have installed mongodb on my local machine, and when I access port 27017 through my browser after the startup is completed, I may have the problem that the connection is reset when I refresh the page frequently, please help me to see what causes it.

Here is my usage information:
OS: Windows Server 2012 R2 Standard
Memory: 8G
MongoDB Version: 4.2.17
Conf:

dbpath=../data
logpath=../log/mongo.log
port=27017
maxConns=5000
bind_ip=0.0.0.0
auth=true
wiredTigerCacheSizeGB=4

Launch Script:

@echo off 
@echo mongodb started……
title mongo-4.2.17
cd bin
mongod -f ../conf/mongo.conf
pause

This is the log of 10 visits to the http://127.0.0.1:27017 page after I started mongodb (6 normal responses and 4 connection reset errors).

2023-05-24T13:35:27.440+0800 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2023-05-24T13:35:27.763+0800 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] MongoDB starting : pid=2328 port=27017 dbpath=../data 64-bit host=WIN-FT73QUGLUH6
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] db version v4.2.17
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] git version: be089838c55d33b6f6039c4219896ee4a3cd704f
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] allocator: tcmalloc
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] modules: none
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] build environment:
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten]     distmod: 2012plus
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten]     distarch: x86_64
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten]     target_arch: x86_64
2023-05-24T13:35:27.764+0800 I  CONTROL  [initandlisten] options: { config: "../conf/mongo.conf", net: { bindIp: "0.0.0.0", maxIncomingConnections: 5000, port: 27017 }, security: { authorization: "enabled" }, storage: { dbPath: "../data", journal: { enabled: true }, wiredTiger: { engineConfig: { cacheSizeGB: 4.0 } } }, systemLog: { destination: "file", path: "../log/mongo.log" } }
2023-05-24T13:35:27.764+0800 I  STORAGE  [initandlisten] Detected data files in ../data created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2023-05-24T13:35:27.765+0800 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=4096M,cache_overflow=(file_max=0M),session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
2023-05-24T13:35:27.795+0800 I  STORAGE  [initandlisten] WiredTiger message [1684906527:794745][2328:140732587905856], txn-recover: Recovering log 21 through 22
2023-05-24T13:35:27.860+0800 I  STORAGE  [initandlisten] WiredTiger message [1684906527:859661][2328:140732587905856], txn-recover: Recovering log 22 through 22
2023-05-24T13:35:27.925+0800 I  STORAGE  [initandlisten] WiredTiger message [1684906527:925680][2328:140732587905856], txn-recover: Main recovery loop: starting at 21/4992 to 22/256
2023-05-24T13:35:28.041+0800 I  STORAGE  [initandlisten] WiredTiger message [1684906528:40831][2328:140732587905856], txn-recover: Recovering log 21 through 22
2023-05-24T13:35:28.115+0800 I  STORAGE  [initandlisten] WiredTiger message [1684906528:115241][2328:140732587905856], txn-recover: Recovering log 22 through 22
2023-05-24T13:35:28.166+0800 I  STORAGE  [initandlisten] WiredTiger message [1684906528:165491][2328:140732587905856], txn-recover: Set global recovery timestamp: (0, 0)
2023-05-24T13:35:28.379+0800 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2023-05-24T13:35:28.389+0800 I  STORAGE  [initandlisten] No table logging settings modifications are required for existing WiredTiger tables. Logging enabled? 1
2023-05-24T13:35:28.390+0800 I  STORAGE  [initandlisten] Timestamp monitor starting
2023-05-24T13:35:28.395+0800 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
2023-05-24T13:35:28.438+0800 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '../data/diagnostic.data'
2023-05-24T13:35:28.443+0800 I  NETWORK  [listener] Listening on 0.0.0.0
2023-05-24T13:35:28.443+0800 I  NETWORK  [listener] waiting for connections on port 27017
2023-05-24T13:35:31.438+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49773 #1 (1 connection now open)
2023-05-24T13:35:31.441+0800 I  NETWORK  [conn1] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49773 (connection id: 1)
2023-05-24T13:35:31.441+0800 I  NETWORK  [conn1] end connection 127.0.0.1:49773 (0 connections now open)
2023-05-24T13:35:31.441+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49774 #2 (1 connection now open)
2023-05-24T13:35:31.472+0800 I  NETWORK  [conn2] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49774 (connection id: 2)
2023-05-24T13:35:31.473+0800 I  NETWORK  [conn2] end connection 127.0.0.1:49774 (0 connections now open)
2023-05-24T13:35:31.474+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49775 #3 (1 connection now open)
2023-05-24T13:35:31.475+0800 I  NETWORK  [conn3] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49775 (connection id: 3)
2023-05-24T13:35:31.475+0800 I  NETWORK  [conn3] end connection 127.0.0.1:49775 (0 connections now open)
2023-05-24T13:35:31.958+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49776 #4 (1 connection now open)
2023-05-24T13:35:31.960+0800 I  NETWORK  [conn4] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49776 (connection id: 4)
2023-05-24T13:35:31.960+0800 I  NETWORK  [conn4] end connection 127.0.0.1:49776 (0 connections now open)
2023-05-24T13:35:31.961+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49777 #5 (1 connection now open)
2023-05-24T13:35:31.961+0800 I  NETWORK  [conn5] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49777 (connection id: 5)
2023-05-24T13:35:31.961+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49778 #6 (2 connections now open)
2023-05-24T13:35:31.961+0800 I  NETWORK  [conn5] end connection 127.0.0.1:49777 (1 connection now open)
2023-05-24T13:35:32.472+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49779 #7 (2 connections now open)
2023-05-24T13:35:32.472+0800 I  NETWORK  [conn6] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49778 (connection id: 6)
2023-05-24T13:35:32.472+0800 I  NETWORK  [conn6] end connection 127.0.0.1:49778 (1 connection now open)
2023-05-24T13:35:32.472+0800 I  NETWORK  [conn7] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49779 (connection id: 7)
2023-05-24T13:35:32.472+0800 I  NETWORK  [conn7] end connection 127.0.0.1:49779 (0 connections now open)
2023-05-24T13:35:32.534+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49780 #8 (1 connection now open)
2023-05-24T13:35:32.534+0800 I  NETWORK  [conn8] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49780 (connection id: 8)
2023-05-24T13:35:32.534+0800 I  NETWORK  [conn8] end connection 127.0.0.1:49780 (0 connections now open)
2023-05-24T13:35:33.075+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49781 #9 (1 connection now open)
2023-05-24T13:35:33.077+0800 I  NETWORK  [conn9] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49781 (connection id: 9)
2023-05-24T13:35:33.077+0800 I  NETWORK  [conn9] end connection 127.0.0.1:49781 (1 connection now open)
2023-05-24T13:35:33.077+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49782 #10 (2 connections now open)
2023-05-24T13:35:33.078+0800 I  NETWORK  [conn10] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49782 (connection id: 10)
2023-05-24T13:35:33.078+0800 I  NETWORK  [conn10] end connection 127.0.0.1:49782 (0 connections now open)
2023-05-24T13:35:33.154+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49783 #11 (1 connection now open)
2023-05-24T13:35:33.154+0800 I  NETWORK  [conn11] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49783 (connection id: 11)
2023-05-24T13:35:33.154+0800 I  NETWORK  [conn11] end connection 127.0.0.1:49783 (0 connections now open)
2023-05-24T13:35:33.626+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49784 #12 (1 connection now open)
2023-05-24T13:35:33.628+0800 I  NETWORK  [conn12] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49784 (connection id: 12)
2023-05-24T13:35:33.628+0800 I  NETWORK  [conn12] end connection 127.0.0.1:49784 (0 connections now open)
2023-05-24T13:35:33.628+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49785 #13 (1 connection now open)
2023-05-24T13:35:33.629+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49786 #14 (2 connections now open)
2023-05-24T13:35:33.629+0800 I  NETWORK  [conn13] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49785 (connection id: 13)
2023-05-24T13:35:33.629+0800 I  NETWORK  [conn13] end connection 127.0.0.1:49785 (1 connection now open)
2023-05-24T13:35:34.409+0800 I  NETWORK  [conn14] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49786 (connection id: 14)
2023-05-24T13:35:34.409+0800 I  NETWORK  [conn14] end connection 127.0.0.1:49786 (0 connections now open)
2023-05-24T13:35:34.411+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49787 #15 (1 connection now open)
2023-05-24T13:35:34.411+0800 I  NETWORK  [conn15] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49787 (connection id: 15)
2023-05-24T13:35:34.411+0800 I  NETWORK  [conn15] end connection 127.0.0.1:49787 (0 connections now open)
2023-05-24T13:35:35.064+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49788 #16 (1 connection now open)
2023-05-24T13:35:35.073+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49789 #17 (2 connections now open)
2023-05-24T13:35:35.074+0800 I  NETWORK  [conn16] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49788 (connection id: 16)
2023-05-24T13:35:35.074+0800 I  NETWORK  [conn16] end connection 127.0.0.1:49788 (1 connection now open)
2023-05-24T13:35:35.074+0800 I  NETWORK  [conn17] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49789 (connection id: 17)
2023-05-24T13:35:35.074+0800 I  NETWORK  [conn17] end connection 127.0.0.1:49789 (0 connections now open)
2023-05-24T13:35:35.162+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49790 #18 (1 connection now open)
2023-05-24T13:35:35.162+0800 I  NETWORK  [conn18] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49790 (connection id: 18)
2023-05-24T13:35:35.162+0800 I  NETWORK  [conn18] end connection 127.0.0.1:49790 (0 connections now open)
2023-05-24T13:35:35.656+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49791 #19 (1 connection now open)
2023-05-24T13:35:35.659+0800 I  NETWORK  [conn19] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49791 (connection id: 19)
2023-05-24T13:35:35.659+0800 I  NETWORK  [conn19] end connection 127.0.0.1:49791 (0 connections now open)
2023-05-24T13:35:35.659+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49792 #20 (1 connection now open)
2023-05-24T13:35:35.660+0800 I  NETWORK  [conn20] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49792 (connection id: 20)
2023-05-24T13:35:35.660+0800 I  NETWORK  [conn20] end connection 127.0.0.1:49792 (0 connections now open)
2023-05-24T13:35:35.745+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49793 #21 (1 connection now open)
2023-05-24T13:35:35.745+0800 I  NETWORK  [conn21] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49793 (connection id: 21)
2023-05-24T13:35:35.746+0800 I  NETWORK  [conn21] end connection 127.0.0.1:49793 (0 connections now open)
2023-05-24T13:35:36.205+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49794 #22 (1 connection now open)
2023-05-24T13:35:36.207+0800 I  NETWORK  [conn22] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49794 (connection id: 22)
2023-05-24T13:35:36.207+0800 I  NETWORK  [conn22] end connection 127.0.0.1:49794 (0 connections now open)
2023-05-24T13:35:36.208+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49795 #23 (1 connection now open)
2023-05-24T13:35:36.208+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49796 #24 (2 connections now open)
2023-05-24T13:35:36.268+0800 I  NETWORK  [conn23] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49795 (connection id: 23)
2023-05-24T13:35:36.268+0800 I  NETWORK  [conn23] end connection 127.0.0.1:49795 (1 connection now open)
2023-05-24T13:35:36.268+0800 I  NETWORK  [conn24] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49796 (connection id: 24)
2023-05-24T13:35:36.268+0800 I  NETWORK  [conn24] end connection 127.0.0.1:49796 (0 connections now open)
2023-05-24T13:35:36.269+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49797 #25 (1 connection now open)
2023-05-24T13:35:36.272+0800 I  NETWORK  [conn25] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49797 (connection id: 25)
2023-05-24T13:35:36.272+0800 I  NETWORK  [conn25] end connection 127.0.0.1:49797 (0 connections now open)
2023-05-24T13:35:36.779+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49798 #26 (1 connection now open)
2023-05-24T13:35:36.783+0800 I  NETWORK  [conn26] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49798 (connection id: 26)
2023-05-24T13:35:36.783+0800 I  NETWORK  [conn26] end connection 127.0.0.1:49798 (0 connections now open)
2023-05-24T13:35:36.783+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49799 #27 (1 connection now open)
2023-05-24T13:35:36.876+0800 I  NETWORK  [conn27] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49799 (connection id: 27)
2023-05-24T13:35:36.876+0800 I  NETWORK  [conn27] end connection 127.0.0.1:49799 (0 connections now open)
2023-05-24T13:35:36.877+0800 I  NETWORK  [listener] connection accepted from 127.0.0.1:49800 #28 (1 connection now open)
2023-05-24T13:35:36.877+0800 I  NETWORK  [conn28] Error receiving request from client: ProtocolError: Client sent an HTTP request over a native MongoDB connection. Ending connection from 127.0.0.1:49800 (connection id: 28)
2023-05-24T13:35:36.877+0800 I  NETWORK  [conn28] end connection 127.0.0.1:49800 (0 connections now open)
2023-05-24T13:35:40.643+0800 I  CONTROL  [thread29] CTRL_CLOSE_EVENT signal
2023-05-24T13:35:40.643+0800 I  CONTROL  [consoleTerminate] got CTRL_CLOSE_EVENT, will terminate after current cmd ends
2023-05-24T13:35:40.643+0800 I  REPL     [consoleTerminate] Stepping down the ReplicationCoordinator for shutdown, waitTime: 10000ms
2023-05-24T13:35:40.643+0800 I  SHARDING [consoleTerminate] Shutting down the WaitForMajorityService
2023-05-24T13:35:40.644+0800 I  CONTROL  [consoleTerminate] Shutting down the LogicalSessionCache
2023-05-24T13:35:40.645+0800 I  NETWORK  [consoleTerminate] shutdown: going to close listening sockets...
2023-05-24T13:35:40.645+0800 I  NETWORK  [consoleTerminate] Shutting down the global connection pool
2023-05-24T13:35:40.645+0800 I  STORAGE  [consoleTerminate] Shutting down the FlowControlTicketholder
2023-05-24T13:35:40.645+0800 I  -        [consoleTerminate] Stopping further Flow Control ticket acquisitions.
2023-05-24T13:35:40.645+0800 I  STORAGE  [consoleTerminate] Shutting down the PeriodicThreadToAbortExpiredTransactions
2023-05-24T13:35:40.646+0800 I  STORAGE  [consoleTerminate] Shutting down the PeriodicThreadToDecreaseSnapshotHistoryIfNotNeeded
2023-05-24T13:35:40.646+0800 I  REPL     [consoleTerminate] Shutting down the ReplicationCoordinator
2023-05-24T13:35:40.646+0800 I  SHARDING [consoleTerminate] Shutting down the ShardingInitializationMongoD
2023-05-24T13:35:40.646+0800 I  REPL     [consoleTerminate] Enqueuing the ReplicationStateTransitionLock for shutdown
2023-05-24T13:35:40.646+0800 I  -        [consoleTerminate] Killing all operations for shutdown
2023-05-24T13:35:40.646+0800 I  COMMAND  [consoleTerminate] Shutting down all open transactions
2023-05-24T13:35:40.646+0800 I  REPL     [consoleTerminate] Acquiring the ReplicationStateTransitionLock for shutdown
2023-05-24T13:35:40.646+0800 I  INDEX    [consoleTerminate] Shutting down the IndexBuildsCoordinator
2023-05-24T13:35:40.646+0800 I  NETWORK  [consoleTerminate] Shutting down the ReplicaSetMonitor
2023-05-24T13:35:40.646+0800 I  CONTROL  [consoleTerminate] Shutting down free monitoring
2023-05-24T13:35:40.646+0800 I  CONTROL  [consoleTerminate] Shutting down free monitoring
2023-05-24T13:35:40.646+0800 I  FTDC     [consoleTerminate] Shutting down full-time data capture
2023-05-24T13:35:40.646+0800 I  FTDC     [consoleTerminate] Shutting down full-time diagnostic data capture
2023-05-24T13:35:40.648+0800 I  STORAGE  [consoleTerminate] Shutting down the HealthLog
2023-05-24T13:35:40.648+0800 I  STORAGE  [consoleTerminate] Shutting down the storage engine
2023-05-24T13:35:40.648+0800 I  STORAGE  [consoleTerminate] Deregistering all the collections
2023-05-24T13:35:40.648+0800 I  STORAGE  [consoleTerminate] Timestamp monitor shutting down
2023-05-24T13:35:40.648+0800 I  STORAGE  [consoleTerminate] WiredTigerKVEngine shutting down
2023-05-24T13:35:40.660+0800 I  STORAGE  [consoleTerminate] Shutting down session sweeper thread
2023-05-24T13:35:40.660+0800 I  STORAGE  [consoleTerminate] Finished shutting down session sweeper thread
2023-05-24T13:35:40.660+0800 I  STORAGE  [consoleTerminate] Shutting down journal flusher thread
2023-05-24T13:35:40.693+0800 I  STORAGE  [consoleTerminate] Finished shutting down journal flusher thread
2023-05-24T13:35:40.693+0800 I  STORAGE  [consoleTerminate] Shutting down checkpoint thread
2023-05-24T13:35:40.694+0800 I  STORAGE  [consoleTerminate] Finished shutting down checkpoint thread
2023-05-24T13:35:40.714+0800 I  STORAGE  [consoleTerminate] shutdown: removing fs lock...
2023-05-24T13:35:40.715+0800 I  -        [consoleTerminate] Dropping the scope cache for shutdown
2023-05-24T13:35:40.715+0800 I  CONTROL  [consoleTerminate] now exiting
2023-05-24T13:35:40.715+0800 I  CONTROL  [consoleTerminate] shutting down with code:12

your mongodb doesn’t support http protocol. Check manual.

Sorry, I didn’t understand what you meant, are you referring to MongoDB Wire Protocol? The problem I’m having is that frequent access to the server port (27017 ) occasionally results in a connection reset, and in most cases the access returns: It looks like you are trying to access MongoDB over HTTP on the native driver port.

Normal Response:
It looks like you are trying to access MongoDB over HTTP on the native driver port.

Abnormal response during frequent refresh:

You connect to mongodb using the mongosh command line tool or via a driver in your application.

The response you see and the log lines are expected when you connect with a web browser.

Thank you for your replay.
If I use the mongosh command line tool or connect via a driver there is no problem.But if I access port 27017 via http protocol I get a connection has reseted problem.

If I use the curl command to access it, The following response was obtained:
image
Meanwhile, I grabbed the network packet information by wireshark tool, but from the results, both the normal return and the connection was reset to grab the network packets are similar:

I think we are all trying to understand why you are trying to connect over http.

The response you see when connecting using a browser or cURL is expected. It is telling you what you are doing is wrong and then hangs up the connection.

In order to access port 27017 via http protocol before using the driver to link mongo, it is used to check whether mongo has started properly

I just confirmed the logic and the original author’s idea is to access port 27017 via http protocol for the purpose of quickly verifying if the mongodb service is available.