☰
Login
Signup
Home
›
Java client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
15.1K
All Categories
0
Incidents
179
Node JS client
52
Go client
859
.Net API client
400
Kite Publisher
554
.Net / VBA / Excel (3rd party)
503
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
410
PHP client
4.3K
Python client
364
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
General
In this Discussion
April 1
msuri1975
Help with static IP
msuri1975
April 1
in
Java client
I am running my code in my local computer. I use Jio broadband.
I bought a static IP from app.proxy-cheap.com
When I try to use, I get error :
Error while fetching profile name Failed to authenticate with proxy
java.io.IOException: Failed to authenticate with proxy
From below code
System.setProperty("http.proxyUser", proxyUser);
System.setProperty("http.proxyPassword", proxyPassword);
System.setProperty("https.proxyUser", proxyUser);
System.setProperty("https.proxyPassword", proxyPassword);
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(proxyUser, proxyPassword.toCharArray());
}
});
Proxy tradingProxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(staticIP, port));
// 2. Pass it to your KiteConnect instance
kc = new KiteConnect((String)mapUser.get("APIKEY"), tradingProxy, false);
try {
System.out.println("iiiiii----- "+kc.getProfile().userName);
} catch (Exception e) {
System.out.println("Error while fetching profile name " + e.getMessage());
}
Error while fetching profile name Failed to authenticate with proxy
java.io.IOException: Failed to authenticate with proxy
Can any one help me to fix it.
Thanks in advance
Tagged:
javakiteconnect
msuri1975
April 1
pls ignore... google AI gave me complex answer to purchase a static ip and use it as proxy... To solve this all I had to do was to get my IP from website "whatismyipaddress.com" and whitelist it in user profile
Sign In
or
Register
to comment.