| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -147,6 +147,19 @@ protected int clientIndex(Client client) { | |||
| 147 | 147 | return -1; | |
| 148 | 148 | } | |
| 149 | 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 | + | ||
| 150 | 163 | ||
| 151 | 164 | // the last index used for available. can't just cycle through | |
| 152 | 165 | // the clients in order from 0 each time, because if client 0 won't | |
| Back | FazBrowse Home | New Git URL |
0 commit comments