Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

2 LAN cards  RSS feed

 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body
I'm developing FTP client application. Client machine has two ethernet intefaces(eth0, eth1). When create socket connection i want to choose ethernet interface. How do i choose ethernet from Java?
[ September 06, 2005: Message edited by: Michael Ernest ]
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if NetWorkInterface.getNetworkInterfaces() and the Socket( remoteaddress, remoteport, localaddress, localport ) constructor help. Let us know how it works out!
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stan James
Thanks a lot. i will try it.
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it works for me. Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!