Author Topic: Virtual Ethernet Adapters/Incorrect IP supplied  (Read 2748 times)

iddqd

  • Guest
Virtual Ethernet Adapters/Incorrect IP supplied
« on: April 24, 2013, 08:27:06 AM »
Hello

I recently installed VMWare Player which creates virtual ethernet adapters, so my system IPs look like this:

LAN:                 192.168.1.6
VMWare Adapter 192.168.204.1

Now the Unity Server uses the IP of the VMWare adapter when creating a server, or at least that's what's broadcast in the Lobby. If I'm testing locally, the App (which Autoconnects through TNUDPLobbyClient) will successfully connect to (the wrong IP) 192.168.204.1 - however the Android App will fail to connect.

What can I do about this? :-\

Many thanks! :)

« Last Edit: April 24, 2013, 08:52:27 AM by iddqd »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Virtual Ethernet Adapters/Incorrect IP supplied
« Reply #1 on: April 24, 2013, 12:27:41 PM »
There is no silver bullet here. I recommend using direct IP connections for testing on a machine with two local network interfaces rather than relying on guesswork of which IP is the right one.

iddqd

  • Guest
Re: Virtual Ethernet Adapters/Incorrect IP supplied
« Reply #2 on: April 24, 2013, 01:04:52 PM »
i guess something like this would work:
http://stackoverflow.com/questions/13725844/how-to-get-ip-address-of-network-adapter-used-to-access-the-internet

the network adapter that accesses the internet is most likely the right one.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Virtual Ethernet Adapters/Incorrect IP supplied
« Reply #3 on: April 24, 2013, 07:49:41 PM »
Comments right below that solution say that it won't work in some situations.

iddqd

  • Guest
Re: Virtual Ethernet Adapters/Incorrect IP supplied
« Reply #4 on: April 25, 2013, 01:28:25 AM »
you're right ;-)

aqez

  • Guest
Re: Virtual Ethernet Adapters/Incorrect IP supplied
« Reply #5 on: May 22, 2013, 04:03:12 PM »
Not sure if it helps or not but you can order your devices in which priority to use them in windows. If you have your vmware hosting and your actual box trying to connect you can set it up so that your actual installation uses a specific adapter. Note I've never used vmware but I assume its similar to virtualbox. Anyway the procedure to do so:
Open network and sharing center(right click on network icon)->Change adapter settings->hit the alt key on the keyboard->Advanced Settings. The top box shows you the order(at least on windows 8, iirc it's the same on 7) with the one on top being priority.

Edit: After re-reading it seems I misinterpreted the question. I'll leave it as is in case it helps anyway.