Setting up Java to run on port 3619

Net Llama! netllama
Fri Jun 9 12:17:53 PDT 2006


On Fri, 9 Jun 2006, altendew wrote:
>
> Hi, I need to be able to open a socket through php like this.
>
> 66.98.242.36:3619
>
> I currently am getting this error form php when trying to connect to it.
>
> Warning: fsockopen(): unable to connect to 66.98.242.36:3619 in
> /usr/lib/php/Net/Socket.php on line 108
>
> In /etc/services I added this:
> java            3619/tcp                        # Java
> java            3619/udp                        # Java
>
> In /etc/inetd.conf I added this:
> java   stream  tcp     nowait  root    /usr/sbin/tcpd java WAPID
>
> "java WAPID" is what im trying to execute. I also allowed this port on my
> firewall, so I am not sure why it is not working correctly.

Did you restart inetd ?  If you run "/usr/sbin/tcpd java WAPID" manually,
does it listen on the port?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org



More information about the Linux-users mailing list