最简单的做法是将多个 IP 分配给主机,然后使用可让您绑定到特定源 IP 的内容。由于这是 TCP/IP 并且您需要处理响应,因此制作可能只是一种痛苦。
使用 linux,如果您碰巧使用的是 Curl,则可以使用 Curl 进行 http 连接:
--interface <name>
Perform an operation using a specified interface. You can enter
interface name, IP address or host name. An example could look
like:
curl --interface eth0:1 http://www.netscape.com/
Run Code Online (Sandbox Code Playgroud)
同样对于 Linux,如果您想要较低级别的 tcp,您可以考虑 netcat nc
。
归档时间: |
|
查看次数: |
145 次 |
最近记录: |