Skip to main content

All Questions

Tagged with
0 votes
0 answers
33 views

request.getRemoteAddr() returns server address or client's machine address?

I am trying to fetch the IP of the client in a Spring Boot application. I send a request from my local PC, from Postman and I get the following results: String abc = request.getRemoteAddr(); // it ...
Wajih Haider's user avatar
0 votes
0 answers
42 views

SQL Server Configuration Manager doesn't show the IP [duplicate]

When I try to connect Java to SQL Server, I get the error: Error: "connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and ...
EduRushian's user avatar
1 vote
0 answers
67 views

How to get my public ipv4 address in my android application?

I am developing an android application and need to get my device's public IPV4 address to trigger an API, how can this be done. Some approaches I have tried I am sharing below fun getIPAddress(): ...
Ripped_Asssasin's user avatar
0 votes
1 answer
122 views

AuthorizationManager hasIpAddress unable to get to work with more than 1 ip address

I've been playing with spring-boot-starter-security and i've managed to get my Rest Controller to work with 1 IP whitelist, but unable to make it with many, since i need to adjust input to list from ...
rokkotnik's user avatar
1 vote
1 answer
142 views

Sean Foley IPAddress library and containment inside CIDR

Similar to this question although not quite the same, I'm having trouble understanding why the Sean Foley IPAddress library doesn't think that an IP address is contained inside a CIDR. From what I've ...
tubbs_uk's user avatar
0 votes
1 answer
506 views

How i can get the ip address for connected device with hotspot programmatically

I have an Android POS device and it is connected to my Android phone through a mobile hotspot, I need to get the IP Address for the POS programmatically without letting the user enter it, I can get ...
walid azgear's user avatar
0 votes
1 answer
207 views

scala subnet ip address check 0/8

import java.net.InetAddress println(InetAddress.getByName("0.0.0.0").isAnyLocalAddress) true println(InetAddress.getByName("0.0.0.1").isAnyLocalAddress) false Can I check ...
Dariusz Krynicki's user avatar
-4 votes
1 answer
115 views

Get longitude and latitude in java [closed]

I want track my location using longitude and latitude in linux I am trying get longitude and latitude using public ip address but i want using system ip address
Shubham Pandharpote's user avatar
0 votes
1 answer
80 views

Access secondary hard drive from IP in Java application in Apache Tomcat 8.0

I have a Java web application that has to access a file in a hard drive different than the one the application is installed in. I have the address configured in my Web.xml, this data is accessed from ...
Christian Sêngir's user avatar
0 votes
0 answers
391 views

Configure embedded tomcat server to only listen to localhost connections

I am running an application with an embedded tomcat server which by default listens to any connections (binds to 0.0.0.0). I am trying to bind the server to listen to localhost connections only. How ...
N.Stanchev's user avatar
0 votes
1 answer
227 views

CAS server only accepts requests from localhost

I'm using CAS server to handle authentication for my web apps within Tomcat server, and everything works fine when I send requests from localhost like: https://localhost:8443/WebApp. But if I want to ...
Aleksandar Cvisic's user avatar
0 votes
1 answer
133 views

Java, split NetworkInterface by ip addresses

my first post, so please be gentle ;) I have to modify some existing software that is focused on java.net.NetworkInterface. Previously all interfaces were listed in a combobox and the user had to pick ...
Supersmuu's user avatar
1 vote
1 answer
671 views

(Alternate Solution) Validate IPV4 and IPV6 with wildcard (*) characters using Regex

I want to validate IP Address with wildcard characters (*) using regex. I came up with the following regex for IPV4 and IPV6 but these don't validate all use cases. IPV4 ^((([0-9]{1,2})|(1[0-9]{2,2})|...
raven's user avatar
  • 43
1 vote
0 answers
364 views

Is there a way to specify a source IP address for a Oracle JDBC connection string?

The server on which the application runs has multiple IP addresses assigned. I know for mysql, we can use the ?localSocketAddress= parameter to specify source ip. Is there a way to specify the source ...
most2's user avatar
  • 21
0 votes
0 answers
92 views

p2p via socket connection

There are 2 android phones, They want to communicate directly with P2P via socket connection. Both phones know each other's IP address' Both phones are behind different symmetric NATs You have root ...
Hemant Shroff's user avatar

15 30 50 per page
1
2 3 4 5
19