Description
hi,
I wish bind address option.
thank you.
ex) pc ips (1.1.1.2, 1.1.1.3, 1.1.1.4)
`# ip a
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether ****
inet 1.1.1.2/24 brd 1.1.1.255 scope global enp2s0
inet 1.1.1.3/24 brd 1.1.1.255 scope global enp2s0
inet 1.1.1.4/24 brd 1.1.1.255 scope global enp2s0`
I wish choice 1.1.1.3
`import http.client
conn = http.client.HTTPConnection('xenosi.de', source_address=tuple(['1.1.1.3', 0]));
h = {}
h['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36'
conn.request('GET', '/ip.php?json', headers=h);
res = conn.getresponse();
print(res.status, res.reason, res.read())`
result)
proxy --hostname=0.0.0.0 --bindip=1.1.1.3