Cloud IDE with exposed ports - sockets

Im looking for a cloud IDE like cloud9 which I was pretty satisfied with until I ran into this problem. Cloud9 allows for http and tcp via ws (I think) but I need a workspace with ports exposed for UDP and I cant seem to find one.
Im a newbie in the matter so there could be a way to communicate with cloud9 workspace via udp but there is no info about it in google so idk.

I'm an employee at Cloud9. Cloud9 doesn't allow connecting via UDP as most users don't need it and it would take a lot of engineering effort to support. I'd recommend buying a VPS from a cloud provider and creating a SSH workspace in Cloud9. Then you can use any ports you like and still use Cloud9.

Related

Is it possible to install server software while I just have a hosting

I'm new to web back-end and about to deploy a website(with both backend and frontend). As far as I know, If you own a server, you can install whatever software you want. But how about when you have a free hosting, is it possible for you to install softwares like Tomcat, Mysql,etc yourself.
Ps: as far as I know, hosting is a folder inside a server, so in my opinion, you'll depend on the server which contains the hosting. Still I get confused.
I highly appreciate you all for spending time read this post.
Hosting is just deploying your applications and then serve them to the internet. If you are using free hosting, I suppose that they must be managed service which mean you cannot do anything except the functions the hosting provider provide. In my opinion, it is better to get your own vps if you want to control your server fully. You can just install software you want in ubuntu or other supported os, and then serve your port to public. If you would like to try, you can use some cheap vps provider first like Contabo VPS.

How to debug kubernetes deployed service using Eclipse

I have a micro service written using Java EE + Openliberty. I have deployed this into kubernetes in my Docker-Desktop. I want to know, is there any way to debug this deployed service? I am using Eclipse. Please let me know how can I debug deployed service. Thank you!
I heartily endorse looking at telepresence. I don't use it for real yet, but I've verified it will be very useful in our enterprise once we get some pieces in place.
However, I don't believe you need that complication for your simpler situation. Telepresence will be very nice for injecting NEW code into a cluster without actually deploying it. In your case, you just want to debug the existing code. This allows for a simpler mechanism.
To remotely debug in Eclipse, you need to connect to a debugger port. To do this with code running in a k8s cluster, you have to expose the port to connect to, and make it available on your desktop.
In your image, you have to ensure that your Java command line has the "-Xdebug" parameters, which specifies the debugger port (5005 by convention). You also have to ensure that your Dockerfile specifies that port to be exposed. When that is running in your cluster, you have to use "kubectl port-forward" on your desktop (with appropriate parameters). This will proxy the debugger port in the cluster to a corresponding port on your desktop. You then connect to that port from Eclipse.
If you want to debug your application, you can do it using either squash or telepresence. Here is great article comparing these two solutions
Article also mentions that squash doesn't support eclipse, but notice that is was written in 2018 and since then squash added support for eclipse IDE.

Leshan connect to server and cloud

I have the task of implementing iot device management using Eclipse Leshan. I have difficulty understanding how Eclipse Leshan works in connecting IOT sensors with servers and cloud. Is it true if I declare that Eclipse Leshan does not require a gateway like Eclipse Kura to connect into server and cloud?
Does anyone know where the complete documentation about Eclipse Leshan is? it would be very helpful if there were examples of programs in implementing the eclipse leshan.
Thank you
Eclipse Leshan is a library for implementing applications that use the LWM2M protocol to manage devices. As such, your application can use Leshan's Java API in order to interact with devices that also support LWM2M.
LWM2M does not per se mandate a transport protocol. However, the spec is written assuming that CoAP over UDP is used for that purpose. In fact, the LW in LWM2M stands for Lightweight and as such, using CoAP as the transport protocol makes a lot of sense for managing constrained devices.
Eclipse Leshan itself does not connect to a server or cloud but instead is usually part of an application that is hosted on a server (on the cloud). However, you need to implement that application yourself because Leshan, as indicated above, is just a library. The devices then interact with your LWM2M enabled application. Because CoAP/UDP uses standard IP, this interaction can occur over public internet infrastructure if desirable in your use case, i.e. no gateway is necessarily needed. You can, however, also connect your devices to a local gateway, e.g. Kura, and then connect the gateway to your LWM2M server in the cloud instead. It really depends on your use case and the capabilities of the devices.

How can I install oVirt on one server?

I have one server.
And when I install ovirt I can open web interface at 10.0.0.10.
But, then I try instal host on 10.0.0.10 after that I can`t open 10.0.0.10
So, how I can instal ovirt-engine and host on one server?
Can you give me link to any tutorials?
If you're going to use a single host for both engine and run vms, the supported and suggested configuration is to use Hosted Engine.
See http://www.ovirt.org/documentation/how-to/hosted-engine/
You should follow the official quickstart guide http://www.ovirt.org/documentation/quickstart/quickstart-guide/
This definitely works for oVirt release 3.6 and Fedora 22 Server.
After you add the host in the webgui, it deploys necessary packages and configurations on the host. One of these steps configures and starts iptables. Maybe you first need to disable iptables and reconfigure it and that's the reason why your ovirt-engine isn't available after your deployment is finished. You can read the details which ports to open for iptables in the Quickstart Guide.
If you use CentOS this post maybe also helpful http://blog.mit.bme.hu/meszaros/en/node/193
oVirt Orb is what you are looking for, if you just want to try it out. "oVirt Orb lets you try out oVirt on your own laptop. You can test it and play with it, all without the need to manually install all the components or use multiple hosts or a storage server."
If you have shared storage available somewhere or don't mind setting it up, Hosted Engine (as Sandro mentioned) will give you an Engine Virtual Machine running on a single Host. (Hosted Engine requires NFS, iSCSI, etc.)

Showing friend my jsp project

I am using eclipse with tomcat to develop my jsp projects. Is it possible for me to be able to show this to my friend remotely? Without them having tomcat or anything. Without purchasing a web hosting service?
You can do that using Port Forwarding Login to your router and configure a rule for port 8080 (tomcat port).
Go here to find out your external IP. Your friend should be able to access your tomcat context by using your external IP on port 8080.
Also - make sure your firewall/Anti Virus in allowing this connection.
Hope that helps!
Good Luck!
TeamViewer would be my choice, they can remote into your machine and it will be like they are sitting there with you. If things go nasty, just turn off your network.