Jump to content
apc

FujiNet on PC?

Recommended Posts

Stupid question time! I compiled and got this working on a 32-bit ARM Chromebook (Samsung Chromebook 2, Exynos CPU). In theory, since I have two SIO2PC/USB adapters, I could run two instances (from individual directories) - but how do I change the default web server? localhost:8000 will always go to instance 1, is there a place where I can set, say localhost:8001 for instance 2? Or :8001/:8002?

 

Second dumb question - this being an armv7 system, Altirra won't work. Period. Atari800 works - is there a way to mate the two?

Share this post


Link to post
Share on other sites
1 hour ago, JohnBuell said:

Stupid question time! I compiled and got this working on a 32-bit ARM Chromebook (Samsung Chromebook 2, Exynos CPU). In theory, since I have two SIO2PC/USB adapters, I could run two instances (from individual directories) - but how do I change the default web server? localhost:8000 will always go to instance 1, is there a place where I can set, say localhost:8001 for instance 2? Or :8001/:8002?

 

Thom was kind enough to show me where to alter the code. From the root directory in fujinet-pc, it's /lib/http/httpService.cpp - change "8000" and recompile the file for each instance you want to run. Now I have one instance with a web service on 8881, and a second on 8882, both running over SIO2PC/USB cables.

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, JohnBuell said:

Thom was kind enough to show me where to alter the code. From the root directory in fujinet-pc, it's /lib/http/httpService.cpp - change "8000" and recompile the file for each instance you want to run. Now I have one instance with a web service on 8881, and a second on 8882, both running over SIO2PC/USB cables.

 

Command line option was added -u URL , to specify URL the web server should listen on.

Updated code is available as usually on https://github.com/FujiNetWIFI/fujinet-pc

 

After new build, you can start fujinet with -u option like this:

# to serve web on all available interfaces/addresses, on port 8881
./fujinet -u http://0.0.0.0:8881

# to serve web interface only on specific interface/address, on port 8882
./fujinet -u http://192.168.192.168:8882

# to limit the web interface only for machine which is running fujinet
./fujinet -u http://127.0.0.1:8000
# or
./fujinet -u http://localhost:8000

:-)

  • Like 4

Share this post


Link to post
Share on other sites
22 hours ago, apc said:

 

Command line option was added -u URL , to specify URL the web server should listen on.

Updated code is available as usually on https://github.com/FujiNetWIFI/fujinet-pc

 

After new build, you can start fujinet with -u option like this:

🙂

Genius! Love it! I'll download it and give it a try as soon as I can!

Share this post


Link to post
Share on other sites

Missing hardware buttons on fujinet-pc ... at least I added Restart button into web interface.

 

 

If interested, pick the code from GitHub, build it and run it with:

./run-fujinet

run-fujinet is simple wrapper script to start fujinet executable and to restart it if it previously exited with specific exit code.

 

🙂 Jan

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...