Connection refused - opening port help

From: Shmulik (shmulik28_at_yahoo.com)
Date: 02/12/04


Date: 12 Feb 2004 12:33:27 -0800

Newbie needs help :-)

Here's my situation:

I'm running Debian Linux, v2.4.18

I have a program written in java that starts a server socket on port
23412 and listens for commands.

I editted the iptables, so it appears as follows:

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp
dpt:23412
ACCEPT tcp -- anywhere anywhere tcp
spt:23412

Here's the situation. My program (on a windows machine), opens a
telnet session to the linux box and executes a script, one of the
scripts starts my Java program - when I try to connect to the socket
(23412), the connection is refused. If I manually logon to the linux
box (under the same program credentials as what the telnet session
uses) and run the script, using a test program I can connect to the
socket and send it messages.

I've also added the PC from which I'm connecting to the Linux box into
my hosts.allow file, but no luck.

Any help would be appreciated - what should I be looking at?

Thanks!



Relevant Pages

  • CF GPRS-MODEM card on Intel HCCCBCTA1/Cotulla Platform,problem with serial port
    ... Linux version 2.4.19-rmk7-pxa2; ... CPU: XScale-PXA250 revision 1 ... Initializing RT netlink socket ... Keyboard reset failed, no ACK ...
    (Linux-Kernel)
  • Anyone know why the linux select() function is broken?
    ... 1, I sent a packet to a LAN server A, select works ... Anyone know why the linux selectfunction is broken? ... The problem I have isolated is that if a udp socket is openned, ... If there is a receiver however, ...
    (comp.os.linux.development.apps)
  • Re: epoll and timeouts
    ... descriptors to internal socket structures is probably best. ... I don't think I understand why the map is better. ... reason to not use all of the features epoll provides. ... of particular concern with Linux, ...
    (comp.unix.programmer)
  • Re: epoll and timeouts
    ... descriptors to internal socket structures is probably best. ... I don't think I understand why the map is better. ... thought-out interfaces. ... being added to Linux. ...
    (comp.unix.programmer)
  • Re: BSD Sockets Question
    ... since Linux 2.4. ... and mark a socket readable when even a single ... there in the headers but they are noops in the runtime. ... I suspect that the works of Stevens, ...
    (comp.unix.programmer)

Quantcast