Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Source Address is not used in socket connection

See original GitHub issue

At, I believe the source_address should be used as local_addr parameter, otherwise socket laddr will always set to local IP address.

            connect_coro = create_connection(
                lambda: protocol,
                local_addr=(self.source_address, 0),

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

colecommented, Nov 25, 2020

@rafaelrds ah, that’s a good point. A better approach may be to use source_address after all then.

colecommented, Dec 7, 2020

Closed by #167

Read more comments on GitHub >

github_iconTop Results From Across the Web

Socket Addresses in TCP/IP - IBM
TCP/IP creates the socket address as an identifier that is unique throughout all Internet networks. TCP/IP concatenates the Internet address of the local...
Read more >
source address in TCP connection - c++ - Stack Overflow
I have a system with 6 interfaces (and 6 IP addresses). I want to set up a TCP client connection (C++) to a...
Read more >
TCP/IP Ports and Sockets Explained - Steve's internet Guide
What is a port? What is a Socket? In this tutorial you will learn about TCP and UDP ports and sockets and why...
Read more >
Networking and Sockets
( getAllByName is used when a host has multiple IP addresses, e.g. because it is connected to multiple networks, and it returns InetAddress[]...
Read more >
Programming with TCP/IP sockets - Rutgers CS
There may be more than one IP addresses for a host. In practice, you should be able to use any of the addresses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found