Get user’s IP address, and other client-side info in Vaadin 7 web app
问题 In Vaadin 7, how does one get the IP address of the user’s computer/device? Can I get other information about the client? 回答1: Vaadin WebBrowser The WebBrowser class in Vaadin 7 provides an easy way to access information about the client’s computing environment. Access a WebBrowser object via the current Page object. WebBrowser webBrowser = Page.getCurrent().getWebBrowser(); IP Address The getAddress method provides the apparent IP address of the client computer/device. String ipAddress =