Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6125

Sending txt message from React native app to Ubuntu nodejs server

$
0
0

I'm trying to create my first mobile application,the front end is written using react-native and running on my windows host machine, and in backend server which is hosted locally on my vmware ubuntu 22.04 is written using nodejs

I'm trying to send a post request to my server and write the text on the server under the following path: /home/usr/message.txt

both: windows host and ubuntu (running on my local vmware) are on the same network - VMware network is bridged.

i'm getting the following error once i try to click the send buttonERROR Error sending message: [AxiosError: Network Error]

Firewall rule is enabled on the server to allow ingoing and outgoing traffics on port 3000

find the source codes following the link bellow on GitHub

GitHub


Viewing all articles
Browse latest Browse all 6125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>