Source Address is not used in socket connection
See original GitHub issueAt connection.py
, I believe the source_address
should be used as local_addr
parameter, otherwise socket laddr
will always set to local IP address.
...
else:
connect_coro = create_connection(
self.loop,
lambda: protocol,
host=self.hostname,
port=self.port,
ssl=tls_context,
ssl_handshake_timeout=ssl_handshake_timeout,
local_addr=(self.source_address, 0),
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rafaelrds ah, that’s a good point. A better approach may be to use
source_address
after all then.Closed by #167