Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-09-2002, 02:17 PM   #1
LQ Newbie
Registered: Jul 2002
Distribution: Redhat 7.2
Posts: 2

Rep: Reputation: 0
Linux sockets

I am trying to write a java server that listens on port 50000 (Random selection). The server starts fine, but now I want to test it. Any attempt to telnet to this port is refused (any attempt to telnet to this system is refused).

I first suspected xinetd, but from everything I read about it, it appears as though it will start a service when some attachs to a port. I don't want that - I already have my server started.

Somewhere there is a solution, but I do not have a clue where to begin - is it ipchains , is it /etc/services is it xinetd.

All web pages (many hours of searching) suggest how to close down a system. Nothing about opening one up. Pages on sockect programming all descibe a services that will be started by xinetd.

Old 07-09-2002, 03:06 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
First look if your ipchains/iptables isn't blocking the port you're using. Run
ipchains -L
iptables -L
One of them will produce an error, the second one will write your rules. Look if there is a range of ports you use. If in doubt, send the outpot here.
Old 07-16-2002, 02:51 PM   #3
LQ Newbie
Registered: Jul 2002
Distribution: Redhat 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the response. I actually was able to solve it by writing the client and using it instead of telnet. With the correct client I had no problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i send a file using linux sockets?? crapodino Programming 2 10-09-2005 11:17 PM
Linux Sockets JanusPaul Programming 5 11-14-2004 11:44 AM
how to sendto() on packet sockets in linux? kiba Programming 3 10-29-2003 11:46 AM
sockets in linux 2.4.2 kernel arumash Linux - Networking 1 06-29-2002 09:21 PM
Sockets in Linux GhostBoot Linux - Networking 1 05-18-2001 12:36 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration