LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2013, 05:09 AM   #1
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Rep: Reputation: 2
Ubuntu 13.04 curl to Win7 webservice


I am issuing the following on my Ubuntu in an attempt to connect to a WebService on a Win 7 machine on my intranet.

curl http://192.168.0.10/CISWebService

and the error I get is:- curl: (7) Failed connect to 192.168.0.10:80; Connection timed out However a ping to that PC works fine.

am I doing something wrong or is the webservice at fault?
 
Old 09-22-2013, 11:38 PM   #2
sxa
Senior Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Rep: Reputation: 49
The most likely issue is that port 80 isn't accepting connections from your box. You would need to check the web service settings on the Win 7 box. You might also want to ensure that on the Win 7 side there are no software firewalls that could be blocking the traffic. I am not familiar enough with Windows web services or really windows in general to be able to walk you through the windows side though I am sure you can find the information that you need out on the web.

You might also do some troubleshooting by taking a packet capture and analyzing with Wireshark. You could run the following from your Ubuntu box to capture the traffic of the communication to port 80 "tcpdump -n dst port 23"
 
1 members found this post helpful.
Old 09-23-2013, 12:10 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by stockton View Post
I am issuing the following on my Ubuntu in an attempt to connect to a WebService on a Win 7 machine on my intranet.

curl http://192.168.0.10/CISWebService

and the error I get is:- curl: (7) Failed connect to 192.168.0.10:80; Connection timed out However a ping to that PC works fine.

am I doing something wrong or is the webservice at fault?
Are you able to access the url in browser?
Can you able to open it with same IP using browser?

If you are facing same problem in browser, it is in loading status and gives connection time out error, it means either firewall is preventing to open it or you are in another LAN and you can't access this url without shifting in that LAN.

Last edited by eklavya; 09-23-2013 at 08:19 AM.
 
1 members found this post helpful.
Old 09-24-2013, 04:01 AM   #4
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Thank you. I have resolved the Windows 7 issues, which were exactly as suggested and now to learn to program the linux client side of this scenario.
As the application eventually needs to run from a Raspberry Pi the goal is an application written in C but until I get my mind around what needs doing I am short term going with PHP.
I don't want to get into the compile, link, test loop until I know what I am doing.
 
  


Reply

Tags
curl



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
Ubuntu can't see win7 paulstenlund Linux - Server 7 12-24-2012 06:53 PM
dual boot--win7 and ubuntu 12.04 -ubuntu not booting ppm2000 Linux - Newbie 11 05-28-2012 01:18 AM
[SOLVED] After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares pobrika Linux - Networking 2 07-21-2010 08:15 PM
LXer: Online Office In Ubuntu With Zoho Webservice LXer Syndicated Linux News 0 04-13-2010 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 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