I am able to run the following code perfectly on local pc. A client application able to connect and communicate correctly with the server. When I try to publish the code to Azure using Visual Studio 2017 it fail with the following error message:
The page cannot be displayed because an internal server error has occurred.
The Code
var net = require('net');
var port = process.env.port || 8000;
var tcp_server = net.createServer(function (socket) {
socket.write('Joydip\n');
socket.end('Kanjilal\n');
});
tcp_server.listen(8080);
//tcp_server.listen(port);
Although I comment out the line that listen to 8080 and replace with the named pipe format it don't work too. Somebody please help. Thanks!