Networking Forums

Networking Forums > Computer Networking > Linux Networking > service binding to wrong interface

Reply
Thread Tools Display Modes

service binding to wrong interface

 
 
epicwinter@hotmail.com
Guest
Posts: n/a

 
      03-12-2006, 12:14 AM
I am working on a server running debian with 2 nics, one goes to the
internet the other goes to the internal lan. This machine has a
iptables firewall with masquerading running. Services like apache and
tomcat work fine on it.
I am a programmer trying to start a java service that works on a
specific port i am using a random one like 8100. I have had a hole in
the iptables firewall specifically opened for this port. I am 100%
positive the port is not blocked. But the problem is the service is
only accesable from my internal lan. I believe when i start this
simple program it is binding itself to the internal lan interface and
so it only listens from that side. How can i get it to bind to the
external interface?

This is not a traditional service just a little program that listens on
a socket so i can't quite figure out how you do this on linux.

thanks a bunch...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Right Interface - Wrong IP serge Linux Networking 7 10-02-2007 01:41 PM
SNMP Interface Binding Skispcs Windows Networking 6 08-17-2007 06:18 AM
Traffic going through wrong interface Rodrigo A B Freire Linux Networking 8 08-09-2007 05:10 PM
Binding RIS to an IP/Interface Stian Øvrevåge Windows Networking 0 05-11-2005 08:18 AM
binding to network interface ? Jay Krishnan Linux Networking 3 10-23-2003 08:18 PM



1 2 3 4 5 6 7 8 9 10 11