Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can localhost be both client and server for development?

Tags:

c#

tcp

console

Referring to a question I asked on SuperUser, which is recommended to be ask on SO.

I am developing a console application that sends packet to a remote server on a specific TCP Port (55000). I only have one computer to develop and test on. Is it still possible to debug my program; i.e. when I F5 debug, I send a test packet (from localhost) to localhost which is listening.

Also, I need to open up a port for development. I follow the this instruction to open a port (55000) in Window 7.

But when I netstat, the port 55000 is not even listed (i.e. the Local Address of 0.0.0.0:55000 is not there...). I also tried restarting the computer, but persist the problem.

like image 511
KMC Avatar asked Sep 15 '25 21:09

KMC


1 Answers

Yes, of course you can. Just run the server to listen on port 55000, and then connect to localhost on port 55000.

like image 117
James McLaughlin Avatar answered Sep 19 '25 03:09

James McLaughlin