[
https://issues.apache.org/jira/browse/KAFKA-13453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17991916#comment-17991916
]
Ksolves India Limited commented on KAFKA-13453:
-----------------------------------------------
HI [~shershai]
When a message is published to a Kafka topic, the Kafka client (producer)
establishes a TCP connection to the Kafka broker using the bootstrap server's
address and port (typically port 9092).
*What is the source port in this TCP connection?*
The source port is assigned dynamically by the operating system of the machine
running the Kafka client.
This port is typically chosen from the ephemeral (temporary) port range, which
is a range of ports reserved by the OS for short-lived connections.
If this satisfies your question you can close this ticket
> Query: Kafka source port for publishing messages
> ------------------------------------------------
>
> Key: KAFKA-13453
> URL: https://issues.apache.org/jira/browse/KAFKA-13453
> Project: Kafka
> Issue Type: Task
> Components: producer
> Reporter: Sheriff
> Priority: Major
>
> When message is getting published to kafka topic, bootstrapserver address and
> port is required. While publishing Kafka uses TCP connection so target port
> would be bootstrap server port what would be *source port* for establish TCP
> connection?
> Is source port slected dynamically or any configuration is present?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)