@Soni Anjali it should be possible over ethernet:
Related threads:
- https://social.msdn.microsoft.com/Forums/en-US/d1cecacd-0155-4790-9e19-3ff77284d0f6/can-azure-sphere-device-be-configured-as-a-tcp-client-over-ethernet-eth0?forum=azuresphere
- https://stackoverflow.com/questions/60814693/unable-to-use-azure-sphere-device-as-tcp-client
Please ensure that the destination is in the app manifest under AllowedConnections.
Were you aware of those related threads and what you tried so far? Let me quick check if over wifi is also possible.
Thanks!