Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
06-27-2013, 05:28 AM
|
#1
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
I am not able to send data from one PC to another PC which are in LAN
Hello All,
i have 192.168.1.X network in my home.
router ip is :192.168.1.1.
I am trying to establish a connection between a TCP server and a TCP client which are running in two different machines. But it was not success.
Client side i am receiving error is:
"No route to host"
I am running the TCP server in 192.168.1.2 machine and
TCP client in 192.168.1.3 machine.
ping is working from both sides.
what could be the problem? please help me
Thanks
Manikanta Velaga
|
|
|
06-27-2013, 06:45 AM
|
#2
|
Member
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317
Rep:
|
What command did you use when you got the error message?
Cheers
|
|
|
06-27-2013, 06:54 AM
|
#3
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Not commands, these TCP Server and TCP client are programs.
In TCP client program,
connect() call is failing and returning the error code:"No route to host"
Thanks &Regards
Manikanta Velaga
|
|
|
06-27-2013, 08:01 AM
|
#4
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Do i need to add any route by using linux route command?
|
|
|
06-27-2013, 08:22 AM
|
#5
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Hi Kimgiarakura,
I am not able read your reply, can you please reply in English?
Thanks
Manikanta Velaga
|
|
|
06-28-2013, 05:36 PM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983
|
what applications are you using, what distros are you running, what are the settings of SELinux and IPTables as well as their status?
|
|
|
06-29-2013, 03:41 AM
|
#7
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Hi lleb,
Thanks for the reply.
I am using fedora linux on both the machines.
I am running simple TCP server program and simple TCP client program developed using C-langauage.
How can i see the IPTables status on both the machines? please let me know.
Thanks
Manikanta Velaga
|
|
|
06-29-2013, 12:26 PM
|
#8
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983
|
Quote:
Originally Posted by ManikantaVelaga
Hi lleb,
Thanks for the reply.
I am using fedora linux on both the machines.
I am running simple TCP server program and simple TCP client program developed using C-langauage.
How can i see the IPTables status on both the machines? please let me know.
Thanks
Manikanta Velaga
|
what vs. of Fedora, there is a big difference between Fedora 14 and the most current Fedora 18/19.
You still have not told us what application you are running. a description is not the same thing as the name of the application. each application will function differently.
google is your friend for IPTables. the search would be howto IPTables Fedora <put the number here>
|
|
|
07-09-2013, 09:49 AM
|
#9
|
LQ Newbie
Registered: Jul 2013
Posts: 3
Rep: ![Reputation: Disabled](https://www.linuxquestions.org/questions/images/reputation/reputation_off.gif)
|
Try Secure Shell and make sure that TCP ports # 22 on each of your machines are open.
|
|
|
07-09-2013, 07:37 PM
|
#10
|
Member
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 754
Rep: ![Reputation: 156](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
Quote:
Originally Posted by ManikantaVelaga
Hi lleb,
I am running simple TCP server program and simple TCP client program developed using C-langauage.
|
What port are you using to communicate? Do you need to open the port on your firewall?
I don't want to second guess your abilities but the following website is something of a 101 guide (to me) regarding network programming. Perhaps you can try one of Beej's client/server programs and see whether they work
http://beej.us/guide/bgnet/
Cheers
|
|
|
07-10-2013, 05:25 PM
|
#11
|
Member
Registered: Sep 2006
Distribution: SuSE, Slackware
Posts: 55
Rep:
|
Since the machines can ping each other, I would start with checking what port are you using in your program and see if it is being filtered by either of them. If it is, then open it. You need to check your Fedora documentation on how to do that.
|
|
|
All times are GMT -5. The time now is 11:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|