Reputation: 10502
I am having a nodejs server on port 3000
so to get the socket.io.js file i am using url like localhost:3000/socket/io.....
Is it safe and good to show port number in URL ?
Upvotes: 2
Views: 2157
Reputation: 53478
Yes. It's no more dangerous to reveal port number than it is IP address. E.g. discloses a very small amount of information about your network, but doesn't significantly degrade your security. And if you're relying on a 'hidden' port number for any sort of security, then you're making a mistake.
Upvotes: 2