We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce99e30 commit f12a8bfCopy full SHA for f12a8bf
1 file changed
java/libraries/net/src/processing/net/Server.java
@@ -147,6 +147,19 @@ protected int clientIndex(Client client) {
147
return -1;
148
}
149
150
+
151
+ static public String ip() {
152
+ try {
153
+ return InetAddress.getLocalHost().getHostAddress();
154
+ } catch (UnknownHostException e) {
155
+ e.printStackTrace();
156
+ }
157
+ return null;
158
+// InetAddress thisIp = InetAddress.getLocalHost();
159
+// thisIpAddress = thisIp.getHostAddress()
160
+// return server.getInetAddress().getHostAddress();
161
162
163
164
// the last index used for available. can't just cycle through
165
// the clients in order from 0 each time, because if client 0 won't
0 commit comments