LinuxQuestions.org
Review your favorite Linux distribution.
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


Reply
  Search this Thread
Old 01-29-2012, 11:19 PM   #1
shreekanth
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
connect system call failure saying network unreachable


Hi all,

I have a problem (dont know if it's really so) with connect system call. My application server (which uses tcp) is running and my client is trying to connect to it. But connect system call in client is failing saying network unreachable. But the server to which client is trying to connect is reachable because ping to that server ip gives proper response. The error code which i got upon failure of connect system call is ENETUNREACH.

Can anybody let me know why this happens

Thanks in advance
Shreekanth
 
Old 01-30-2012, 03:37 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
It seems your firewall is causing issues, you can check the logs to confirm.Since the server is reachable by ping,but system calls fail, there may be a port that is not open on the server or the server is blocking the client ip address.You'd have to check the logs to find more.
 
  


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
connect: Network is unreachable pvtplt Linux - Networking 6 03-06-2008 03:30 PM
[SOLVED] connect: Network is unreachable phahn Linux - Networking 3 01-06-2008 11:53 AM
connect: network is unreachable xeebeeeeeee Linux - Networking 6 03-22-2007 04:03 AM
connect: Network is unreachable teach42 Fedora 1 08-10-2004 06:16 PM
connect: Network is unreachable joenomad Linux - Networking 11 04-21-2002 10:33 AM

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

All times are GMT -5. The time now is 02:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration