Skip to content

Commit 0184fa6

Browse files
Change ports for Express and UDP Socket API
1 parent 755cafe commit 0184fa6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Server/Server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import dgram from "dgram";
2-
const port: number = 8081;
2+
const port: number = 8080;
33

44
import express, { Application, Request, Response } from "express";
55
const app: Application = express();
@@ -38,7 +38,9 @@ try {
3838

3939

4040
Server.bind(port, (): void => {
41-
console.log(`Server is active at http://localhost:${port}`);
41+
console.log(`UDP Datagram Server is active at http://localhost:${port}`);
42+
});
43+
4244
app.listen(8081, (): void => {
4345
console.log(`HTTP Server is active at http://localhost:8081`);
4446
});

0 commit comments

Comments
 (0)