How to force Typesafe Activator to listen 0.0.0.0:8888 - scala

I recently installed Typesafe Activator to a VM. Applications created by activator can be accessed after port forwarding, but Activator seems to listen localhost. How to change this to WAN?

It looks like setting system properties http.address and http.port will now do this job, e.g.
./activator -Dhttp.address=0.0.0.0 -Dhttp.port=80
Would launch Activator on a WAN on port 80 (assuming matching permissions, etc).

It is hardcoded right now and there's no way to change short of recompiling from source. https://github.com/typesafehub/activator/blob/master/ui/app/activator/UIMain.scala#L99
Maybe we could prefix this with if (System.getProperty("http.address") == null)
File an issue on github?
Update: this is now fixed so that -Dhttp.address works (and above source link no longer goes to the right place)

Base on Michael Nash's answer, but should be
./activator ui -Dhttp.address=0.0.0.0 -Dhttp.port=80
for version 1.2.10

Related

SMBJ no longer working when I modify JMX port settings

I have an application running under spring boot utilizing SMBJ to mount and read remote files, and it works perfectly. However I am trying to set up some datadog reporting and trying to use JMX as a datasource for datadog...
TO do this I am staring the springboot jar with the following:
ENTRYPOINT java -Djava.rmi.server.hostname=myhost
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.port=8089
-Dcom.sun.management.jmxremote.rmi.port=8089
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-jar demo-0.0.1-SNAPSHOT.jar
And once I do this, SMBJ no longer creates the mount. If I remove these parameters the code works fine again and SMBJ is able to create/mount to the share, If I have them it simply times out trying to create the share. I thought maybe it was the RMI hostname change, but removing just this this doesn't seem to fix it.
Can anyone offer any help on this? Is SMBJ really dependent on the jmxremote settings? It certainly seems to be..I have tried removing the overriding of the ports, so they go to their default ports as well, but this didn't fix it either.
Any help would be appreciated.

Issue with the proxy settings when installing Eclipse

I have the same issue with Eclipse (Neon 4.6 eclipse installer by Oomph 32 bit) as in this question and as explained there I have downloaded the automatic configuration script (the script is set up through the Group Policy so I can’t change my LAN settings) that my browser is using. I used the host and port in the return statement and did as explained below
Select the "HTTP" line and click the edit button
Add the IP address and port number above to the http line:
Does anyone know what else I can try because I am still getting a network problem message?
Your help will be appreciated
Proxy Network problem message:
I have changed the active provider to Manual and retried again, then it worked.
I installed an old version and it's worked well.
this is the link for the old version:
https://www.eclipse.org/downloads/packages/release/oxygen/2
You can download a zip file of the Eclipse package you want and explode it in your filesystem where you want it,
Here is link for Eclipse package for windows:
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-06/R/eclipse-java-2021-06-R-win32-x86_64.zip&mirror_id=17
Or select another package here:
https://www.eclipse.org/downloads/packages/
For me, I had similar issues to this that related to my office network and their use of a security tool called Netskope which needed its root-certificate into the jvm that would be used by the Eclipse installer. I elaborated on my workaround steps in this other thread:
https://stackoverflow.com/a/69171147/1302220

How do I change Netbeans's webserver port from 8383?

How do I change Netbeans's webserver port from 8383?
I know I could install and use a separate webserver, but I'd prefer to just use the embedded one.
Some of what I've read online makes me think it might not be possible to change the port. But, then bug https://netbeans.org/bugzilla/show_bug.cgi?id=222570 makes it sound like using other than 8383 is possible.
I can't find such a setting with the UI. I searched under the installation directory for 8383 and can't find anything.
So, how do I do this? I'm using Netbeans 8.0.1.
Thanks.
ADDITIONAL INFO:
I'm using the internal webserver that comes with Netbeans.
I don't think this is possible, definitely not via UI. Looking at the java class, port number seems to be hardcoded in the source. You would have to build the particular NetBeans module and then replace the one in NetBeans installation folder with yours module.
From what I can tell from the issue, it fixes cases when default port 8383 is occupied, IDE uses different one (increment by 1) and thanks to the fixed bug, this incremented port is also used in browser (prior the fix, even with incremented port, old 8383 was being used in browser).
You can file enhancement with request for it.
Under Window / Services / Servers you'll find every registered server. Right-click on your server, choose "Properties" and under the "Connection"-tab you can define your port.
(You haven't mentioned which server you are using, but that's the way where you usually define your port).
I can't find Servers option either and I'm using NetBeans v8.0.2. But you can use an external server [ex. IIS, Apache] as an workaround: right-click the project in Project Window > Properties > Run. Then change the Web Server to External and Project URL to your desired address.
If your project is not in an web accessible directory you must make it web accessible first by configuring your web server or adding it in an web accessible location.

GridGain. Local node's library list differs from remote node's, leveldbjni-all-1.1.jar

When I try to use gridGain on one machine, I run a ggstart.bat and run app on eclipse, I added all .jar files from gridGain sourсe folder, but I see on console this when start:
Local node's library list differs from remote node's
<leveldbjni-all-1.1.jar> vs. <not found>
(in ecsiple's console conversely - not found vs level...)
Only this file from all, I try delete this, in doesn't work, try to rename, message change to <newFile> vs. <not found>
I try to found about this file, found only "download leveldbjni-all-1.1.jar" and something different size of file, but no about this file.
May be someone knows how to fix it or something about this file?
Version of gridGain is 5.3.0
The jar your are talking about is a LevelDB library, used in one of GridGain swapspace implementations. Please check if you are running the same version of GridGain remotely and from Eclipse, and that the classpath is equal.

How can I run two instances of tomcat 7.0 per eclipse different ports?

Project1: http1.1=8080 ajp1.3=8009; Project2: http1.1=8085 ajp1.3=8010. When I run Project2 in eclipseit starts up ok. However, when I startup the second in eclipse it says tomcat has a problem....this is all after cleaning both projects and a reboot.
As per the screenshot, eclipse complains that "tomcat admin port" 8005 is already in use. Please change this under Ports ( in addition to changing http 1.1 and ajp1.3). I think you had mentioned that the port appears to be readonly. If that is the case, the port could be directly modified in the server.xml located in your workspace.
File location: <>\Servers\Tomcat v7.0 Server at localhost-config\server.xml
Locate the following line in server.xml and modify it. Refresh your eclipse and it should reflect in the UI.
<Server port="8005" shutdown="SHUTDOWN">
For 2nd instance change the server port to some other port like 801010 ...it will work
You need to change all the three port numbers as in the pic