troubleshooting Question

Collect Data at established port between server and client server

Avatar of duncanb7
duncanb7 asked on
PHPNetworkingVPNWindows Server 2003Scripting Languages
8 Comments1 Solution690 ViewsLast Modified:
Dear Expert,

I write a server/client php script for socket communication based on the reference link at
http://php.net/manual/en/sockets.examples.php
And I used  same server address(163.77.88.6) and port number(10000) in server.php and client.php for socket communication
The client.php is running on my home PC xampp server. And it is  no issue at all and the connection is establish and server socket is keep sending out  non-stop message to client
such as "welcome you.." from my remote server site .And Client just receive the message and echo out on window console without stopping that is what I want to do.
Now I go to check netstat command on window and see
Port 10000 is still active and report two address, For example,
         Local Addresss                      REmote Adress      
========================================================
TCP  218.123.88.123:41345      163.77.88.6:10000   Established

The Local address is my home PC  ISP provider address.
So Two address location is doing socket communcation without stopping.
Just want to know, Could I use other new C or PHP or Java program to
connect(or Direct Acess)  the establed communication port and grab the data or message such as"Welcome you ..."

I tried to use php  socket and set socket address for ISP address as 218.123.88.123:41345   but socket connection error "connection is refused " 
Suppose what data is coming to my ADSL device on home PC, I should be able
to collect all data stream by other new applcation, RIght ?
The error whether it is related to Firewall or WIndow system issue ? Web Proxy is not working because the data is raw data not http repsonse data. Charles or Fiddle is http proxy only could NOT grab raw data for my case.
I google it , found there is similar topic like Window 2008 server DirectAcess or VPN
but it seems not easy to understand for me

I try  one application for drect access I/O  at http://www.codeproject.com/Articles/10263/Kport-Part-2-Direct-Access-I-O-Ports-under-Win-NT but the application is not working at all  when type the established port number 10000

 Please advise and hope you understand my this testing example for collecting data
from establish communcation port on my home pc
Duncan
ASKER CERTIFIED SOLUTION
pergr

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros