Problem: Not able to connect on port number from a service on same system while able to connect from another system
Environment:
OS: Windows Server 2008 64 bit
Code: VC 6.0
Machine Name:MachineServiceData
Problem Description:
I have a service RMS.exe which is running on 900 port number on machine [MachineServiceData]. We read some information after connecting to this port. When I am connecting to this port from same machine then I am getting an error code: 10047. While when I connect from another machine on the same machine [MachineServiceData] same port no 900, it’s connecting. And I am able to fetch information.
Note: We have utility by which we make connection with port no 900 for reading data.
Attempt:
Regarding this problem I executed telnet onMachineServiceData machinewith port no 900. It was connecting. I was surprised because If it is connecting then why It is throwing 10047 error. While the same machine is working from another machine with same utility.
After that I executed netstat –ab command. It is listed all running ports. And I found different line for port no 900.
RpcSs
[svchost.exe]
TCP [::]:427 CTSSERVER:0 LISTENING
[slp_srvreg.exe]
TCP [::]:445 CTSSERVER:0 LISTENING
Can not obtain ownership information
TCP [::]:900 CTSSERVER:0 LISTENING
[RSMS.exe]
TCP [::]:1090 CTSSERVER:0 LISTENING
[java.exe]
TCP [::]:1098 CTSSERVER:0 LISTENING
[java.exe]
TCP [::]:1099 CTSSERVER:0 LISTENING
[java.exe]
TCP [::]:1433 CTSSERVER:0 LISTENING
[sqlservr.exe]
TCP [::]:2033 CTSSERVER:0 LISTENING
[java.exe]
TCP [::]:2034 CTSSERVER:0 LISTENING
[java.exe]
TCP [::]:2035 CTSSERVER:0 LISTENING
[java.exe]
Note:Can not obtain ownership information
[It can be the reason]
What can be the expected problem? I have stuck at this point. I have no idea what things I should check. Please suggest best way to resolve this issue I will be thankful.