updated readme and ip used
This commit is contained in:
parent
a57c49060e
commit
cf6f8fd5eb
@ -58,7 +58,11 @@ public class DiscordHandler {
|
|||||||
StanfordCoreNLP stanfordCoreNLP, StanfordCoreNLP stanfordCoreNLPSentiment) {
|
StanfordCoreNLP stanfordCoreNLP, StanfordCoreNLP stanfordCoreNLPSentiment) {
|
||||||
|
|
||||||
try (DatagramSocket serverSocket = new DatagramSocket(port)) {
|
try (DatagramSocket serverSocket = new DatagramSocket(port)) {
|
||||||
|
|
||||||
String hostIP = "195.154.53.196";
|
String hostIP = "195.154.53.196";
|
||||||
|
if (port == 48477 || port == 48478) {
|
||||||
|
hostIP = "51.158.20.245";
|
||||||
|
}
|
||||||
InetAddress ipAddress = InetAddress.getByName(hostIP);//used ip'
|
InetAddress ipAddress = InetAddress.getByName(hostIP);//used ip'
|
||||||
while (true) {
|
while (true) {
|
||||||
receiveAndSendPacket(serverSocket, ipAddress, port, datahandler, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
receiveAndSendPacket(serverSocket, ipAddress, port, datahandler, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||||
|
Loading…
Reference in New Issue
Block a user