LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 03-07-2014, 12:40 PM   #1
jdepp
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Rep: Reputation: Disabled
basic tcp connection to linux server


Posted on newbie forum but really desperate for help here. I have a .net process sending messages to a linux server and was trying to send it to a port but keep getting connection refused error with target server actively refused it message. I checked the linux server and the firewall is disabled; found something online referring to listening on localhost instead of ip but don't see how that is related since I specify the ip when creating the tcp connection. How can I enable this to allow incoming data to a specific port? Do I need to make changes to the iptables file

I checked using the following:

netstat -an | grep 1515 | grep LISTEN


and no response tells me it is not being used right?
I tried to telnet and connection refused. Then used one already open by first getting list

netstat -nlt

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:10005 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 :::1514 :::* LISTEN
tcp 0 0 :::9292 :::* LISTEN
tcp 0 0 :::9200 :::* LISTEN
tcp 0 0 :::9201 :::* LISTEN
tcp 0 0 :::9300 :::* LISTEN
tcp 0 0 :::9301 :::* LISTEN
tcp 0 0 :::9302 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN


Used 1514 and that was fine. So how do I enable another port to receive connections.
 
Old 03-07-2014, 01:12 PM   #2
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
From my experience: when dealing with connectors such as AP, packet droping XM is absolute must. To be rooted at xml.org
 
Old 03-07-2014, 02:32 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,353

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:
http://www.linuxquestions.org/questi...ed-4175497280/

If you feel that you posted in the wrong forum please use the report button.
 
  


Closed Thread


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
[Question] tcp client and server connection problems silentkill89 Programming 6 09-04-2011 09:27 PM
[SOLVED] TCP server with multiple client connection on the same server port assyrian1 Programming 1 07-16-2011 04:14 AM
TCP server not detecting broken connection assyrian1 Programming 3 07-05-2011 12:52 AM
Basic TCP Time-Server icpsvt Programming 1 02-10-2005 10:34 PM
tcp/ip multithreaded server stops accepting connection debjyotidas Linux - Networking 2 07-23-2004 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration