Author Topic: multiple NIC card (IP addresses) on my PC  (Read 3231 times)

smallfat

  • Posts: 3
  • Turrets: +0/-0
multiple NIC card (IP addresses) on my PC
« on: January 03, 2013, 10:40:17 pm »
If I have multiple NIC card on my PC, each with different IP addresses in different subnets, how can I let the client listen on a particular interface (or IP address)?

To my experience, although we can specify the signaling IP address on the server via "+set net_ip" option, we can not ask the client to listen on a defined IP, can we?

It seems my client only listens on dev eth0 while I want it listen on eth1 (for a LAN game).

Thanks in advance!

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: multiple NIC card (IP addresses) on my PC
« Reply #1 on: January 04, 2013, 01:31:44 am »
If I have multiple NIC card on my PC, each with different IP addresses in different subnets, how can I let the client listen on a particular interface (or IP address)?
Start Tremulous with +set net_ip on the command line or /set net_ip in the console followed by /net_restart

Quote
To my experience, although we can specify the signaling IP address on the server via "+set net_ip" option, we can not ask the client to listen on a defined IP, can we?
Yes we can

Quote
It seems my client only listens on dev eth0 while I want it listen on eth1 (for a LAN game).
Are you trying to connect to a server on your LAN (that is only reachable with eth1)? That should work without you needing to set net_ip unless maybe your routing table is screwed up, which seems unlikely
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

smallfat

  • Posts: 3
  • Turrets: +0/-0
Re: multiple NIC card (IP addresses) on my PC
« Reply #2 on: January 04, 2013, 02:18:43 pm »
Thank you so much for the reply! I added +set net_ip after tremulous and it worked! the server appears on my favorite source list LOL.

One thing I am not sure, the ping value from the game shows 270, while the server and client are right next to each other, with a rtt of 0.3ms. Is there any way to keep the ping down?

thanks again!

smallfat

  • Posts: 3
  • Turrets: +0/-0
Re: multiple NIC card (IP addresses) on my PC
« Reply #3 on: January 04, 2013, 02:23:33 pm »
Also, does it work on a GRE tunnel?
Just tried, it seems not working.