TCP socket question

  • Thread starter Thread starter Markgoldin
  • Start date Start date
M

Markgoldin

If I create a program that listens to a port then should netstat show that
when I run the program? If yes, what exactly that command would show?

Thanks
 
Markgoldin said:
If I create a program that listens to a port then should netstat show that
when I run the program? If yes, what exactly that command would show?

The port the IP and the port's state.

There is also TCPView, ActivePorts and Currports that give port and
application using port information, which all of the solutions are free.

You can also use netstat /? to display netstat's help and shows the parms
that can be used and the information returned by using those parms.
 
I do not see anything like this.
And this is the C# code that was working fine (I did not use netstat though
before) but I have a program that connects to the port my C# program is
listening to and it worked fine.
Now, when I try to connect to that port from my non-C# program I am getting
"Connection is forcefully rejected .." error.
Any idea?
 
Markgoldin said:
I do not see anything like this.
And this is the C# code that was working fine (I did not use netstat
though before) but I have a program that connects to the port my C#
program is listening to and it worked fine.
Now, when I try to connect to that port from my non-C# program I am
getting "Connection is forcefully rejected .." error.
Any idea?

I don't know use goggle and do a search on 'Connection is forcefully
rejected" maybe you'll find a resolution.
 
If I create a program that listens to a port then should netstat show that
when I run the program? If yes, what exactly that command would show?

Thanks

Usually you see a line with the port # and the status is LISTENING
 
I do not see anything like this.
And this is the C# code that was working fine (I did not use netstat though
before) but I have a program that connects to the port my C# program is
listening to and it worked fine.
Now, when I try to connect to that port from my non-C# program I am getting
"Connection is forcefully rejected .." error.
Any idea?










- Show quoted text -

do a telnet localhost XXXX and see what happens, maybe you have a
firewall somewhere
 
Back
Top