Comments (2)
by changing the hosts file like this - 127.0.0.1 localhost abc.com I am able to start the socket server but still the client isn't able to connect. Tried with { secure: true, reconnect: true, rejectUnauthorized : false }
options too. My server side configuration code looks like this:
Configuration configuration = new Configuration();
configuration.setHostname("abc.com");
configuration.setPort(10443);
configuration.setKeyStorePassword("mypassword");
InputStream stream = getClass().getClassLoader().getResourceAsStream("keystore.jks");
configuration.setKeyStore(stream);
The jks file was created for the same domain as given in setHostname. Please let me know if anything else should be done for this. Request any help.
from netty-socketio-demo.
Got the solution! I had not mentioned that the domain was set up on cloudflare. Here the issue was with
the port I used - 10443. It's not supported by cloudflare. Changed it to 8443 and it worked!
For those who come across this, please find here the list of supported ports that Cloudflare work with. May save much of your time unlike me.
Also, please note that I used my public IP as hostname so that I don't need anything added in my hosts file. Then gave the actual domain name with https on client side to connect to the server. That's it. Thank you.
Sandeep
from netty-socketio-demo.
Related Issues (20)
- Посыл данных всем клиентам в виде byte[]
- How to use the protobuf protocol? HOT 1
- how to use netty-socketio java client HOT 1
- lambda not working
- Can provide rooms example
- netty-socketio + springboot,How to integrate? How to annotation? What's the order?
- After the server restarts, how to restart the socket
- demo classes have the same content
- what's the version of socket.io in demo? HOT 1
- [nioEventLoopGroup-5-8] ERROR com.corundumstudio.socketio.listener.DefaultExceptionListener - 远程主机强迫关闭了一个现有的连接。
- ⚠️BinaryEventLauncher.java (sending array of byte)
- SSL with *.pem certificates
- Severe memory leak in JS
- Bug when send binary data HOT 1
- Sending data without event
- Unable to connect to server from Java(Android) client
- How Create Certificate for SSL connection
- How to implement clustering?
- How to store SocketIOClient into Redis?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netty-socketio-demo.