- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: socket program to communicate between WindowsN...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 10:30 AM
04-09-2001 10:30 AM
socket program to communicate between WindowsNT and Unix
(I apologize for my english)
I have developed a socket program : the client (developed in PERL) is on a unix station and the client (developed in C) is on a windows station.
It doesn't work.
While the server has already been launch, when the client is launched (with the ip address of the server and on the same port as the server) the connect api fails (connection failed).
I don't understand. I haven't this problem when I put the server program on a windows station.
Do you know if their is any particular thing to check, or to do for this client/server application to go on??
PS: the 2 stations can ping each other
Please Help Me. In advance, Thank you very much.
Best regards, Sylvie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 01:46 PM
04-09-2001 01:46 PM
Re: socket program to communicate between WindowsNT and Unix
www.perl.com/CPAN. I would then get the two
machines talking through perl using the simple examples listed in the O'Reilly book 'Advanced Perl Programming'. You should then be able to debug any network/OS problems much faster than in c.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 05:03 PM
04-09-2001 05:03 PM
Re: socket program to communicate between WindowsNT and Unix
I presume your perl program in the Unix side is the server, just do
netstat -a|grep
is the port under LISTENing state?
~Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:04 AM
04-10-2001 12:04 AM
Re: socket program to communicate between WindowsNT and Unix
My email : sylvie_borges@yahoo.fr
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:11 AM
04-10-2001 12:11 AM
Re: socket program to communicate between WindowsNT and Unix
Thanks to all for your help.
I typed the command 'netstat...', and my is LISTENing on the port.
I typed the command : "netstat -a" on my NT station and how was surprised to see that line:
Proto | Local Address | Foreign Address |State
TCP | ntPC:port1 | unixPC:port2 | ESTABLISHED
Does it mean that the connection was established? What happens?
PS: Both port1 and port2 are not the port that I have indicated.
Thanks for your help.
Sylvie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:23 AM
04-10-2001 12:23 AM
Re: socket program to communicate between WindowsNT and Unix
Note the user privileges you are using to run the client and server daemons. Note that if you are non-superuser, you are not allowed to use a port number < 1024.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:28 AM
04-10-2001 12:28 AM
Re: socket program to communicate between WindowsNT and Unix
I guessed the connection you saw was just some other connection services, because the server port number is static. For example if your server is set to listen to port 2345, then "netstat -a|grep EST" should shown that number as well.
First thing that you should check is whether the server process is really listening, so just run the following command at the server side
netstat -a | grep LISTEN
is your server listening port number on the list?
Rgds,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:37 AM
04-10-2001 12:37 AM
Re: socket program to communicate between WindowsNT and Unix
I'm not superuser and i'm using a port over 44000.
When i do 'netstat -a|grep port' on my unix station, i saw my server listening on the port i've specified to him.
But, it is when i do 'netstat -a' on my NT pc that i've seen different ports on communication with my NT pc and my unix pc.
It proofs that there i communication; unless, my netstat wouldn't have the ip my unix station. Whereas, the connection failed.
Thanks for your help.
Sylvie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 05:41 AM
04-10-2001 05:41 AM
Re: socket program to communicate between WindowsNT and Unix
Instead of having a PERL Unix server communicating with a C NT client; I have now a PERL Unix server communicating with a PERL NT client.
IT WORKS!!!!
My question : what's the problem the C client? Is it a problem of incompatibility??
Thanks for your help.
Sylvie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:49 PM
04-10-2001 12:49 PM
Re: socket program to communicate between WindowsNT and Unix
Attached is the example TCP socket client/server perl code that you requested.
You can also find many examples at
ftp.oreilly.com/published/oreilly/nutshell
via anonymous ftp.