LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-09-2002, 02:17 PM   #1
linlai
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.


HELP!!!!!
 
Old 07-09-2002, 03:06 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
First look if your ipchains/iptables isn't blocking the port you're using. Run
ipchains -L
or
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
linlai
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:57 PM.

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