[p2p-hackers] STUN server bindings

Chris Edwards chris at chris-edwards.org
Wed Jun 29 04:12:50 UTC 2005


David Barrett wrote:
> The STUN protocol indicates:
> 
>    A STUN server MUST be prepared to receive Binding Requests on four
>    address/port combinations - (A1, P1), (A2, P1), (A1, P2), and (A2,
>    P2).
> 
> Does this mean that a compliant STUN server must have two Ethernet
> cards, each configured with a different IP address?  Or is it possible
> for a single computer with a single Ethernet card to send and receive
> via two different IP addresses?  In general, how would such a thing be
> done on a Linux Fedora Core 2 server?

Create aliases for the ethernet device. eg. eth0:1 eth0:2, ...

Each can then have its own IP address.



More information about the P2p-hackers mailing list