I'm new to java and now I have a problem in using Ethernet port in Java . I have a device which can send and receive data by Ethernet . I connect it to a switch and when I enter its IP address in a browser I can see the data that the device sent ( the data is some HTML code ). But now I want to do it by a java application . If anyone can help me or send some sample code I would be grateful . thanks
Send and receive data to/from a local IP address in Java
3k views Asked by Masoud At
1
There are 1 answers
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in SOCKETS
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- My server TCP doesn't receive messages from the client in C
- how is strncpy able to copy from source to empty destination?
- Python Multicast packet receiver stops receiving multicast packets when computer is connected to WiFi
- Python Client-Server Communication with Protocol
- Reversed TLS re-connection issue
- Android 13 & 14 seem to close WebSocket connection, if i put app in background, after ~20s
- Java SocketException: Connection reset,. What is the cause?
- Multipart/form-data with chunked data transfer (ICAP protocol)
- View Socket View
- Client connection timeout during Android & Windows PC communication via sockets
- Browser connect to raw sockets even possible?
- Protocol 43200 after unpacking received data
- Unity SocketIo using Best http2 plugin want to use in webgl
- How does pre-allocating a pool of SocketAsyncEventArgs objects upfront improve the performance of a server application in c#
Related Questions in IP
- How to use a proxy to obtain a static IP for my Node.js application?
- PHP Get IPv4 Address
- Unable to correctly configure StrongSwan with site-to-site connection and road warrior
- Can I know the namespace of my k8s Pod only by looking at its IP?
- data transfer to ip address using osi model
- Search web address from IP
- Deploy my Django project in my private network
- Generate country names from IP Addresses in R and saving these as a new variable in a dataframe
- Connect to a specific country using Psiphon vpn from Command line
- FastCourier API - Invalid ip accessing app
- TCP/IP Server Using sockets Java
- Calling service with localhost or machine IP for internal calls?
- What does "Simultaneous Live View Up to 6 channels" imply for a IP Camera specification
- X-Forwarded-For in the request-ip package potential bug
- How to scan and message devices connected to OpenThread border router from Android app?
Related Questions in PORT
- Sniff data packages from application to serial port (/dev/ttyACM0)
- How to choose port number for various microservices? whatever port number I use is already used-blocked or I'm not able to use them
- Why is only the port version not printed in the output?
- Redirect outbound traffic to a different port
- on linux gitclone issue remote server error showing fatal error with proxy n port
- ERR_EMPTY_RESPONSE with docker container port bind
- Block MQTT port from windows firewall
- Localhost doesn't see my file; The requested URL was not found on this server
- Setting up HTML page on port 8083 in NGINX
- ERROR - Container xxx didn't respond to HTTP pings on port: xxx, failing site start
- Docker port exposure with IP resulted to slow postgres database connection
- I don't understand
- Troubleshooting Ineffective Port-Level Value Changes in Kernel Bond Code
- Getting "Jest did not exit one second after the test run has completed" error for test script which was originally passing
- Same IP, same port and nmap scan gives different result. Why?
Related Questions in ETHERNET
- How to use WiFi and Ethernet at same time?
- What is the correct way to setup and use the Ethernet library in Arduino in order to send and receive UDP broadcast messages between LAN devices?
- Arduino IDE: The IP address was not printing in serial monitor
- I don't know where to start with ethernet communication with Automation Direct P1AM-200 ETH module communication
- How do I know when the dsa_loop and dsa_loop_bdinfo linux kernel modules are working?
- How can I upload data from Arduino uno ethernet shield to mongodb Atlas
- Access flask server hosted on Raspberry Pi on Android phone connected via ethernet
- Python code for read/write binary file and convert it to .pcap
- Should my PC recognize my Arty A7-100T FPGA?
- How to get to send the current network's server using nodejs
- How can I get a Python socket object to read a continuous stream of raw TCP/IP data over ethernet connection?
- Need CAPL script to find fin or RST messages over TCP connection - DOIP
- Socket implementation with micropython and WIZNET5500
- UDSonIP vehicle announcement
- Packet Sniffing on Mirrored Port - Missing Packets when UDP Message > 50kb (Python, Scapy)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I think tutorials on socket programming will help you.
https://docs.oracle.com/javase/tutorial/networking/sockets/
A very brief code may look like this: